GMP function to generate prime number bigger than X

Torbjörn Granlund tg at
Wed Jan 26 13:58:31 CET 2022

Hans Petter Selasky <hps at> 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?

Please encrypt, key id 0xC8601622

More information about the gmp-discuss mailing list