This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
Number Theoretic Functions
Mathematica contains the world's largest collection of number theoretic functions, many based on specially developed algorithms.
Prime the nth prime
PrimeQ test for primality
NextPrime  ▪ PrimePi  ▪ PrimeOmega  ▪ LogIntegral  ▪ Zeta  ▪ ZetaZero  ▪ ...
FactorInteger find the factors of an integer
Divisibility
GCD  ▪ LCM  ▪ Divisible  ▪ CoprimeQ  ▪ ExtendedGCD
Congruences
Divisors  ▪ DivisorSigma  ▪ DivisorSum  ▪ DedekindEta  ▪ EllipticTheta  ▪ ...
IntegerPartitions  ▪ PartitionsP  ▪ StirlingS1  ▪ StirlingS2  ▪ FrobeniusNumber  ▪ ...
Representations as Sums of Powers
IntegerDigits  ▪ FromDigits  ▪ DigitCount  ▪ IntegerExponent  ▪ Log2  ▪ ...
    
MoebiusMu  ▪ EulerPhi  ▪ DivisorSigma  ▪ MangoldtLambda  ▪ PrimeNu  ▪ ...
Zeta  ▪ ZetaZero  ▪ RiemannSiegelZ  ▪ LerchPhi  ▪ DirichletL  ▪ RamanujanTau  ▪ ...
PartitionsP  ▪ PartitionsQ  ▪ BellB  ▪ SquaresR  ▪ ...
TUTORIALS
MORE ABOUT