powered by
Get the n-th prime, \(p_n\), in the sequence of primes.
nth_prime(x)
An integer vector.
an integer vector.
Paul Egeler, MS
nth_prime(5) ## [1] 11 nth_prime(c(1:3, 7)) ## [1] 2 3 5 17
Run the code above in your browser using DataLab