Here is a prime number finder. It generates a list of primes 2, 3, 5,... checking upto one plus the sqrt of the number in question. Stops at the 1000th prime number