Application Guide

isPrime()
Catalog >
Returns true or false to indicate if number
is a whole number 2 that is evenly
divisible only by itself and 1.
If Number exceeds about 306 digits and has
no factors 1021, isPrime(Number) displays
an error message.
If you merely want to determine if Number
is prime, use isPrime() instead of factor(). It
is much faster, particularly if Number is not
prime and has a second-largest factor that
exceeds about five digits.
Note for entering the example: For
instructions on entering multi-line program
and function definitions, refer to the
Calculator section of your product
guidebook.
Function to findthe next prime after a
specifiednumber:
isVoid()
Catalog >
isVoid(Var) Boolean constant
expression
isVoid(Expr) Boolean constant
expression
isVoid(List) list of Boolean constant
expressions
Returns true or false to indicate if the
argument is a void data type.
For more information on void elements, see
page 236.
Alphabetical Listing 95