generate primes for user