updated generation of large primes