Working on GMP-based gen_rsa().
Generate primes p and q.