primes {conf.design} | R Documentation |
Generate a table of prime numbers.
primes(n)
n |
Positive integer value. |
Uses an elementary sieve method, not suitable for very large n. This function is no longer used as part of the design library and is included for curiosity value only.
A vector of all prime numbers less than the argument. 1 is not a prime.
None
factorize
primes(50) # [1] 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47