Difference between revisions of "IsPrime Command"

From GeoGebra Manual
Jump to: navigation, search
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|CAS}}
 
 
;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.

Revision as of 12:32, 3 July 2012

IsPrime[ <Number> ]
Returns true or false depending on whether the number is prime or not.
Example:
  • IsPrime[10] yields false,
  • IsPrime[11] yields true.
© 2021 International GeoGebra Institute