Difference between revisions of "IsPrime Command"

From GeoGebra Manual
Jump to: navigation, search
Line 4: Line 4:
 
:Returns ''true'' or ''false'' depending on whether the number is prime or not.
 
:Returns ''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'' and
+
* <code><nowiki>IsPrime[10]</nowiki></code> yields ''false''  
* <code><nowiki>IsPrime[11]</nowiki></code> yields ''true''.
+
* <code><nowiki>IsPrime[11]</nowiki></code> yields ''true''
 
</div>}}
 
</div>}}

Revision as of 13:05, 19 August 2011

© 2021 International GeoGebra Institute