Cache the sqrt result before the loop, of course. -- Mike
In reply to Re: Finding Primes by RMGir in thread Finding Primes by Fideist11