one million prime numbers

suppose you are provided with a function isPrime() that checks for prime number in o(n) .what if you have to generate first one million prime numbers,will you call the same function to generate one million prime numbers?
suggest any optimization.

Comments

Popular posts from this blog