CoCoA:NextPPrime
From ApCoCoAWiki
NextPPrime
find the next largest probable prime number
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
NextPPrime(1000); 1009 ------------------------------- NextPPrime(10^50); 100000000000000000000000000000000000000000000000151 -------------------------------
Syntax
NextPPrime(N:INT):INT
<type>integer</type>