Other packages > Find by keyword >

primes  

Fast Functions for Prime Numbers
View on CRAN: Click here


Download and install primes package within the R console
Install from CRAN:
install.packages("primes")

Install from Github:
library("remotes")
install_github("cran/primes")

Install by package version:
library("remotes")
install_version("primes", "1.6.1")



Attach the package and use:
library("primes")
Maintained by
Os Keyes
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2015-06-22
Latest Update: 2025-02-04
Description:
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.
How to cite:
Os Keyes (2015). primes: Fast Functions for Prime Numbers. R package version 1.6.1, https://cran.r-project.org/web/packages/primes. Accessed 05 Mar. 2026.
Previous versions and publish date:
0.1.0 (2015-06-22 19:53), 0.2.0 (2020-07-27 01:00), 1.0.0 (2020-07-29 01:00), 1.1.0 (2020-09-03 08:40), 1.4.0 (2022-09-12 13:50), 1.5.0 (2023-10-08 19:40), 1.5.1 (2023-11-08 10:50), 1.5.2 (2023-12-19 02:20), 1.6.0 (2024-01-09 01:40)
Other packages that cited primes R package
View primes citation profile
Other R packages that primes depends, imports, suggests or enhances
Complete documentation for primes
Functions, R codes and Examples using the primes R package
Some associated functions: gcd . generate_primes . is_prime . k_tuple . next_prime . nth_prime . phi . prime_count . prime_factors . primes . primorial . ruth_aaron_pairs . 
Some associated R codes: RcppExports.R . data.R . gcd.R . k_tuple.R . phi.R . prime_count.R . primes-package.R . primorial.R . ruth_aaron_pairs.R . sieve.R .  Full primes package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

imagefx  
Extract Features from Images
Synthesize images into characteristic features for time-series analysis or machine learning applicat ...
Download / Learn more Package Citations See dependency  
roccv  
ROC for Cross Validation Results
Cross validate large genetic data while specifying clinical variables that should always be in the m ...
Download / Learn more Package Citations See dependency  
nextGenShinyApps  
Craft Exceptional 'R Shiny' Applications and Dashboards with Novel Responsive Tools
Nove responsive tools for designing and developing 'Shiny' dashboards and applications. The scripts ...
Download / Learn more Package Citations See dependency  
pinp  
'pinp' is not 'PNAS'
A 'PNAS'-alike style for 'rmarkdown', derived from the 'Proceedings of the National Academy of Scie ...
Download / Learn more Package Citations See dependency  
diffIRT  
Diffusion IRT Models for Response and Response Time Data
Package to fit diffusion-based IRT models to response and response time data. Models are fit using ...
Download / Learn more Package Citations See dependency  
neat  
Efficient Network Enrichment Analysis Test
Includes functions and examples to compute NEAT, the Network Enrichment Analysis Test described in ...
Download / Learn more Package Citations See dependency  

26,264

R Packages

223,360

Dependencies

70,244

Author Associations

26,265

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA