
ithprime - returns the i-th prime number

Calling sequence:
ithprime(integer)

Parameter:

integer   --  positive integer

Overloading:

all

Summary:

ithprime(i) returns the i-th prime number. Where i is a positive integer.

Internally, ithprime uses a table whose length is dependent on the system
used.  E.g. on a Sun4 ithprime can only find prime numbers smaller than
1,000,000. ithprime returns an error when the searched for prime number is
not in the table.

ithprime also returns an error if the argument is a number but not a positive
integer. ithprime returns the call with evaluated arguments if the argument
is not a number. ithprime is a kernel function.

>>  ithprime(1);

      2

>>  ithprime(2457);

      21911

See also:  isprime , nextprime

