next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: nextPrime

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 :