prime
Returns the n
th prime number.
Syntax
-
prime(n)
-
n
is a positive integer
-
Description
If n
is a positive integer, then prime(n)
is the n
th prime number.
Notes
n
must be no greater than 50 847 534.
Examples
SequenceVector(20) @ prime
(2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71)
filter(SequenceVector(100000) @ prime, IsCarolNumber)
(7, 47, 223, 3967, 16127, 1046527)