Fast Enterprises interview question

Write a prime number generator