Fast Enterprises Interview Question

Write a prime number generator