Extracted from Pike v8.0 release 164 as of 2018-07-18.
   

Method Gmp.mpz()->next_prime()


Method next_prime

Gmp.mpz next_prime(void|int count, void|int limit)