up previous next
NextPPrime

find the next largest probable prime number
Syntax

NextPPrime(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
  NextPPrime(1000);
1009
-------------------------------
  NextPPrime(10^50);
100000000000000000000000000000000000000000000000151
-------------------------------



See Also