
nextprime - next prime number

Calling sequence:
nextprime(integer)

Parameter:

integer   --  integer

Overloading:

all

Summary:

nextprime returns the smallest prime number that is larger or equal to the
argument integer.

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

>>  nextprime(11);

     11

>>  nextprime(-13);

      2

>>  nextprime(56475767478567);

      56475767478601

See also:  isprime , ithprime

