Description Usage Arguments Details Value Side Effects See Also Examples

Generate a table of prime numbers.

1 | ```
primes(n)
``` |

`n` |
A positive integer value, or vector or such values. |

Uses an elementary sieve method.

A vector of all prime numbers less than the `max(n)`

.

NB: 1 is not a prime number!

None

1 2 | ```
primes(1:50)
### [1] 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47
``` |

conf.design documentation built on May 30, 2017, 8:17 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.