Create a prime number generator