Macaulay2 » Documentation
Packages » Macaulay2Doc » rings » basic rings of numbers » ZZ » nextPrime
next | previous | forward | backward | up | index | toc

nextPrime -- compute the smallest prime greater than or equal to a given number

Description

i1 : nextPrime 10000

o1 = 10007
i2 : nextPrime 3.5678

o2 = 5
i3 : nextPrime (3/7)

o3 = 2

See also

Ways to use nextPrime:

  • nextPrime(Number)

For the programmer

The object nextPrime is a method function.


The source of this document is in Macaulay2Doc/functions/nextPrime-doc.m2:23:0.