up previous next
NextProbPrime

find the next largest probable prime number

Syntax
NextProbPrime(N:INT):INT


Description
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.

Example
/**/  NextProbPrime(1000);
1009

/**/  NextProbPrime(10^50);
100000000000000000000000000000000000000000000000151

See Also