Extracted from Pike v8.0 release 240 as of 2016-05-30.
   

Method Gmp.mpz()->next_prime()


Method next_prime

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