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

nextPrime -- compute the smallest prime which is at least n.

Synopsis

Description

i1 : p=nextPrime(10000)

o1 = 10007

Ways to use nextPrime :

  • nextPrime(ZZ)