Fast Enterprises interview question

Programs to generate primes