next
|
previous
|
forward
|
backward
| up |
top
|
index
|
toc
|
Macaulay2 web site
RandomSpaceCurves
::
nextPrime
nextPrime -- compute the smallest prime greater than or equal to n
Synopsis
Usage:
nextPrime n
Inputs:
n
,
an
integer
Outputs:
p
,
an
integer
, the smallest prime
p ≥n
Description
i1 : p=nextPrime 10000 o1 = 10007
See also
isPrime
-- whether a integer, polynomial, or ideal is prime
Ways to use
nextPrime
:
nextPrime(ZZ)