Difference between revisions of "IsPrime Command"

From GeoGebra Manual
Jump to: navigation, search
Line 3: Line 3:
 
;IsPrime[ <Number> ]
 
;IsPrime[ <Number> ]
 
: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''  
+
:* <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 14:17, 9 September 2011

© 2021 International GeoGebra Institute