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.0")



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: 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.0, https://cran.r-project.org/web/packages/primes. Accessed 22 Dec. 2024.
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)
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
Get rewarded with contribution points by helping add
Reviews / comments / questions /suggestions ↴↴↴

Today's Hot Picks in Authors and Packages

wordspace  
Distributional Semantic Models in R
An interactive laboratory for research on distributional semantic models ('DSM', see < ...
Download / Learn more Package Citations See dependency  
elect  
Estimation of Life Expectancies Using Multi-State Models
Functions to compute state-specific and marginal life expectancies. The computation is based on a fi ...
Download / Learn more Package Citations See dependency  
dmlalg  
Double Machine Learning Algorithms
Implementation of double machine learning (DML) algorithms in R, based on Emmenegger and Buehlmann ...
Download / Learn more Package Citations See dependency  
Rfast2  
A Collection of Efficient and Extremely Fast R Functions II
A collection of fast statistical and utility functions for data analysis. Functions for regression, ...
Download / Learn more Package Citations See dependency  
tropAlgebra  
Tropical Algebraic Functions
It includes functions like tropical addition, tropical multiplication for vectors and matrices. In t ...
Download / Learn more Package Citations See dependency  
LOGANTree  
Tree-Based Models for the Analysis of Log Files from Computer-Based Assessments
Enables researchers to model log-file data from computer-based assessments using machine-learning te ...
Download / Learn more Package Citations See dependency  
Maintainer: Qi Qin (view profile)

23,394

R Packages

201,798

Dependencies

63,416

Author Associations

23,395

Publication Badges

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