Macaulay2 » Documentation
Packages » Macaulay2Doc :: nextPrime
next | previous | forward | backward | up | index | toc

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

Synopsis

Description

i1 : nextPrime 10000

o1 = 10007
i2 : nextPrime 3.5678

o2 = 5
i3 : nextPrime (3/7)

o3 = 2

See also

Ways to use nextPrime :

For the programmer

The object nextPrime is a method function.