Refactoring Get 10001st Prime

Updated GetPrimeAt with the new maxRoot to speed up the finding of
primes.