Functions to test whether a number is prime and generate the prime numbers within a specified range. Based around an implementation of Wilson's theorem for testing for an integer's primality.

Install the latest version of this package by entering the following in R:

`install.packages("primes")`

Author | Oliver Keyes |

Date of publication | 2015-06-22 19:53:27 |

Maintainer | Oliver Keyes <ironholds@gmail.com> |

License | MIT + file LICENSE |

Version | 0.1.0 |

tests

tests/testthat.R
tests/testthat

tests/testthat/test_primality.R
src

src/primes.cpp

src/RcppExports.cpp

NAMESPACE

R

R/primes.R
R/RcppExports.R
README.md

MD5

DESCRIPTION

man

man/prime.Rd
man/primes.Rd
LICENSE

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

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.