Adding a prime generator