CRAN/E | primes

primes

Fast Functions for Prime Numbers

Installation

About

Fast functions for dealing with prime numbers, such as testing whether a number is prime and generating a sequence prime numbers. Additional functions include finding prime factors and Ruth-Aaron pairs, finding next and previous prime numbers in the series, finding or estimating the nth prime, estimating the number of primes less than or equal to an arbitrary number, computing primorials, prime k-tuples (e.g., twin primes), finding the greatest common divisor and smallest (least) common multiple, testing whether two numbers are coprime, and computing Euler's totient function. Most functions are vectorized for speed and convenience.

github.com/ironholds/primes
Bug report File report

Key Metrics

Version 1.6.0
R ≥ 4.0
Published 2024-01-09 274 days ago
Needs compilation? yes
License MIT
License File
CRAN checks primes results

Downloads

Yesterday 5 0%
Last 7 days 71 -71%
Last 30 days 868 +22%
Last 90 days 1.918 +11%
Last 365 days 9.228 -4%

Maintainer

Maintainer

Os Keyes

Authors

Os Keyes

aut / cre

Paul Egeler

aut

Material

README
Reference manual
Package source

In Views

NumericalMathematics

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

primes archive

Depends

R ≥ 4.0

Imports

Rcpp

Suggests

testthat

LinkingTo

Rcpp