nth_prime | R Documentation |
Get the n-th prime, p_n
, in the sequence of primes.
nth_prime(x)
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.