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.

Getting started

Package details

AuthorOliver Keyes
MaintainerOliver Keyes <>
LicenseMIT + file LICENSE
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the primes package in your browser

Any scripts or data that you put into this service are public.

primes documentation built on May 2, 2019, 12:40 p.m.