Difference between revisions of "PreviousPrime Command"
From GeoGebra Manual
(added missing description) |
|||
Line 1: | Line 1: | ||
− | |||
<noinclude>{{Manual Page|version=4.0}}</noinclude> | <noinclude>{{Manual Page|version=4.0}}</noinclude> | ||
{{command|CAS}} | {{command|CAS}} | ||
;PreviousPrime[ <Number> ] | ;PreviousPrime[ <Number> ] | ||
:Returns the greatest prime smaller than the entered number. | :Returns the greatest prime smaller than the entered number. | ||
+ | :{{example| 1=<div><code><nowiki>PreviousPrime[10000]</nowiki></code> yields ''9973''.</div>}} | ||
+ | {{note| 1=<div>See also [[NextPrime Command]].</div>}} |
Revision as of 11:34, 23 August 2011
This command works in CAS View only.
- PreviousPrime[ <Number> ]
- Returns the greatest prime smaller than the entered number.
- Example:
PreviousPrime[10000]
yields 9973.
Note:
See also NextPrime Command.