
isprime - prime number test

Calling sequence:
isprime(integer)

Parameter:

integer   --  integer

Overloading:

all

Summary:

isprime is a stochastic prime number test. The function returns TRUE when
the integer integer is either a prime number or a strong pseudo prime
number for ten random bases. In all other cases the value FALSE is returned.

isprime returns an error if the number is a number but not an integer. if the
argument cannot be evaluated to a number, isprime returns the unevaluated
function call. isprime is a kernel function.

>>  isprime(989999);

     TRUE

>>  isprime(0);

      FALSE

>>  isprime(-13);

      FALSE

See also:  nextprime , ithprime

