Difference between revisions of "IsPrime Command"
From GeoGebra Manual
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=4.2}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>{{betamanual|version=4.2}} | <noinclude>{{Manual Page|version=4.2}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>{{betamanual|version=4.2}} | ||
{{command|algebra}} | {{command|algebra}} | ||
+ | ;IsPrime[ <Number> ] | ||
+ | :Gives ''true'' or ''false'' depending on whether the number is prime or not. | ||
+ | :{{example| 1=<div> | ||
+ | :* <code><nowiki>IsPrime[10]</nowiki></code> yields ''false'', | ||
+ | :* <code><nowiki>IsPrime[11]</nowiki></code> yields ''true''.</div>}} | ||
+ | ==CAS Syntax== | ||
;IsPrime[ <Number> ] | ;IsPrime[ <Number> ] | ||
:Gives ''true'' or ''false'' depending on whether the number is prime or not. | :Gives ''true'' or ''false'' depending on whether the number is prime or not. |
Revision as of 09:36, 19 September 2012
This page is about a feature that is supported only in GeoGebra 4.2. |
- IsPrime[ <Number> ]
- Gives true or false depending on whether the number is prime or not.
- Example:
IsPrime[10]
yields false,IsPrime[11]
yields true.
CAS Syntax
- IsPrime[ <Number> ]
- Gives true or false depending on whether the number is prime or not.
- Example:
IsPrime[10]
yields false,IsPrime[11]
yields true.