Difference between revisions of "IsPrime Command"

From GeoGebra Manual
Jump to: navigation, search
Line 2: Line 2:
 
{{command|algebra}}
 
{{command|algebra}}
 
;IsPrime[ <Number> ]
 
;IsPrime[ <Number> ]
:Returns ''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.
 
:{{example| 1=<div>
 
:{{example| 1=<div>
 
:* <code><nowiki>IsPrime[10]</nowiki></code> yields ''false'',
 
:* <code><nowiki>IsPrime[10]</nowiki></code> yields ''false'',
 
:* <code><nowiki>IsPrime[11]</nowiki></code> yields ''true''.</div>}}
 
:* <code><nowiki>IsPrime[11]</nowiki></code> yields ''true''.</div>}}

Revision as of 13:55, 17 September 2012

© 2021 International GeoGebra Institute