Package: primes 1.6.0

Os Keyes

primes: Fast Functions for Prime Numbers

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.

Authors:Os Keyes [aut, cre], Paul Egeler [aut]

primes_1.6.0.tar.gz
primes_1.6.0.zip(r-4.7-x86_64)primes_1.6.0.zip(r-4.7-arm64)primes_1.6.0.zip(r-4.6-x86_64)primes_1.6.0.zip(r-4.6-arm64)primes_1.6.0.zip(r-4.5-x86_64)
primes_1.6.0.tgz(r-4.6-x86_64)primes_1.6.0.tgz(r-4.6-arm64)primes_1.6.0.tgz(r-4.5-x86_64)primes_1.6.0.tgz(r-4.5-arm64)
primes_1.6.0.tar.gz(r-4.7-arm64)primes_1.6.0.tar.gz(r-4.7-x86_64)primes_1.6.0.tar.gz(r-4.6-arm64)primes_1.6.0.tar.gz(r-4.6-x86_64)
primes_1.6.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
primes/json (API)

# Install 'primes' in R:
install.packages('primes', repos = c('https://ironholds.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ironholds/primes/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • primes - Pre-computed Prime Numbers

On CRAN:

Conda:

cpp

5.91 score 10 stars 4 packages 87 scripts 1.6k downloads 24 exports 1 dependencies

Last updated from:915c26c5c4. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK94
linux-devel-x86_64OK108
source / vignettesOK195
linux-release-arm64OK97
linux-release-x86_64OK117
macos-release-arm64OK106
macos-release-x86_64OK225
macos-oldrel-arm64OK119
macos-oldrel-x86_64OK171
windows-devel-arm64OK269
windows-devel-x86_64OK143
windows-release-arm64OK209
windows-release-x86_64OK78
windows-oldrel-x86_64OK112
wasm-releaseOK229

Exports:coprimecousin_primesgcdgenerate_n_primesgenerate_primesis_primek_tuplenext_primenth_primenth_prime_estimatephiprev_primeprime_countprime_factorsprimorial_nprimorial_pRgcdRscmruth_aaron_pairsscmsexy_prime_tripletssexy_primesthird_cousin_primestwin_primes

Dependencies:Rcpp