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]
First Published: 2015-06-22
Latest Update: 2022-09-12
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 29 Mar. 2025.
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
02/2702/2803/0103/0203/0303/0403/0503/0603/0703/0803/0903/1003/1103/1203/1303/1403/1503/1603/1703/1803/1903/2003/2103/2203/2303/2403/2503/2603/2703/28Downloads for primes0102030405060708090TrendBars

Today's Hot Picks in Authors and Packages

landmix  
Landmark Prediction for Mixture Data
Non-parametric prediction of survival outcomes for mixture data that incorporates covariates and a l ...
Download / Learn more Package Citations See dependency  
gglgbtq  
Show Pride on 'ggplot2' Plots
Provides multiple palettes based on pride flags with tailored themes. ...
Download / Learn more Package Citations See dependency  
quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  

23,842

R Packages

207,311

Dependencies

64,420

Author Associations

23,781

Publication Badges

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