primes: Generate and Test for Prime Numbers

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")
AuthorOliver Keyes
Date of publication2015-06-22 19:53:27
MaintainerOliver Keyes <ironholds@gmail.com>
LicenseMIT + file LICENSE
Version0.1.0

View on CRAN

Files

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? 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.