generate_n_primes {andrews} | R Documentation |
Generate a Sequence of Prime Numbers
Description
Generates a vector of the first n
primes using gmp::nextprime()
.
Usage
generate_n_primes(n, one = FALSE)
Arguments
n |
the number of primes to generate. |
one |
should |
Value
an integer vector of prime numbers
Examples
generate_n_primes(5)
generate_n_primes(5, TRUE)
[Package andrews version 1.1.2 Index]