up previous next
find the next largest probable prime number
This function computes the smallest probable prime number greater than N. If
N is negative an error is generated. This
function can generate primes larger than permitted as the
characteristic of a finite field in CoCoA.
/**/ NextProbPrime(1000);
1009
/**/ NextProbPrime(10^50);
100000000000000000000000000000000000000000000000151
|