# NOT RUN {
require( npsf )
# obtain first 30 prime numbers
npsf::primes( 30 )
# the same as
npsf::primes( n = 30 )
# the result in both case above are 30 prime numbers
# if we use
npsf::primes( which = 30 )
# the 30th prime is returns, just a scalar
# both cannot be used
# npsf::primes(n = 30, which = 30, random.primes = FALSE, seed = 17345168)
# will give a mistake
# you can get random 30 primes, use seed for replicability
npsf::primes(n = 30, random.primes = TRUE, seed = 17345168)
# obtain specific primes: which take order number(s)
npsf::primes(which = c(3,67,30, 100008))
# }
Run the code above in your browser using DataLab