Extracted from Pike v8.0 release 358 as of 2016-11-23.
   

Method Gmp.mpz()->next_prime()


Method next_prime

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