Number-Theoretic Functions

Provides number-theoretic functions for factorization, prime numbers, twin primes, primitive roots, modular logarithm and inverses, extended GCD, Farey series and continued fractions. Includes Legendre and Jacobi symbols, some divisor functions, Euler's Phi function, etc.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("numbers")

0.9-2 by Hans W. Borchers, a year ago


Browse source code at https://github.com/cran/numbers


Authors: Hans Werner Borchers [aut] , Hans W. Borchers [cre]


Documentation:   PDF Manual  


GPL (>= 3) license


Suggests gmp


Imported by Canek, DoE.base, ERPM, FielDHub, GWRLASSO, HadamardR, LHD, MARSGWR, MFDFA, SpPOP, SpatialPOP, StepGWR, UHM, bellreg, countDM, cyclotomic, eggCounts, ghypernet, gips, groupdata2, mvPot, mvp, permutations, sensitivity, xegaGeGene.

Depended on by MiscMath, Tex4exams.

Suggested by RcppBigIntAlgos.


See at CRAN