Difference between revisions of "NextPrime Command"
From GeoGebra Manual
Line 4: | Line 4: | ||
:Returns the smallest prime greater than the entered number. | :Returns the smallest prime greater than the entered number. | ||
:{{example| 1=<div><code><nowiki>NextPrime[10000]</nowiki></code> yields ''10007''.</div>}} | :{{example| 1=<div><code><nowiki>NextPrime[10000]</nowiki></code> yields ''10007''.</div>}} | ||
+ | |||
+ | |||
{{note| 1=<div>See also [[PreviousPrime Command]].</div>}} | {{note| 1=<div>See also [[PreviousPrime Command]].</div>}} |
Revision as of 11:27, 9 July 2013
- NextPrime[ <Number> ]
- Returns the smallest prime greater than the entered number.
- Example:
NextPrime[10000]
yields 10007.
Note:
See also PreviousPrime Command.