NEC Corporation Interview Question

All the primes between 1 to n?