Hans Petter Selasky <hps at selasky.org> writes: I didn't find any functions to quickly generate a prime number bigger than X in GMP, so I made my own for now. What about mpz_nextprime? -- Torbjörn Please encrypt, key id 0xC8601622