Target interview question

Code to find primes upto N