View source: R/generate_n_primes.R
generate_n_primes | R Documentation |
Generates a vector of the first n
primes using gmp::nextprime()
.
generate_n_primes(n, one = FALSE)
n |
the number of primes to generate. |
one |
should |
an integer vector of prime numbers
generate_n_primes(5)
generate_n_primes(5, TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.