Amazon interview question

What is the best way to generate first N primes? (not primes up to N but first N primes)

Comments (2)