Method Gmp.mpz()->next_prime()
- Method next_prime
Gmp.mpz
next_prime()- Description
Returns the next higher prime for positive numbers and the next lower for negative.
The prime number testing is using Donald Knuth's probabilistic primality test. The chance for a false positive is pow(0.25,25).