gmp_nextprime Find next prime number &reftitle.description; resourcegmp_nextprime inta Find next prime number &reftitle.parameters; a &gmp.parameter; &reftitle.returnvalues; Return the next prime number greater than a, as a GMP number. &reftitle.examples; <function>gmp_nextprime</function> example ]]> &example.outputs; &reftitle.notes; This function uses a probabilistic algorithm to identify primes and chances to get a composite number are extremely small.