CoCoA:NextPPrime

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

IsPPrime

NextPrime

   <type>integer</type>