primes
1.6.1Fast Functions for Prime Numbers
Overview
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.
Install
Health
- OK2026-08-0513 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-04-2214 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-1813 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 91%
- Return-value docs
- 91%
- References docs
- 17%
Downloads
Repository
Stars over time
Forks over time
Issues over time
PRs over time
Repository practices
7 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/ironholds/primes on 2026-08-23.
Show all practices
Dependencies
Code & Tests
Datasets
People & History
10 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 1.6.1Latest
- RR 4.4.0 released · 2024-04-24
- 1.6.02024-01-09 · diff ↗
- 1.5.22023-12-19 · diff ↗
- 1.5.12023-11-08 · diff ↗
- unarchivedReturned to CRAN2023-11-08
- archivedRemoved from CRAN2023-11-06issues were not corrected despite reminders
- 1.5.02023-10-08 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.4.02022-09-12 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 1.1.02020-09-03 · diff ↗
- 1.0.02020-07-29 · diff ↗
Show 8 earlier events
- 0.2.02020-07-27 · diff ↗
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- 0.1.02015-06-22
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2015-06-22
- Total releases
- 10 / 11 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.0
- Bundled data
- 0.9 KB / 1 file
- Download size
- 22 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("primes")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.