Generates prime numbers