PrimePi
(Built-in Mathematica Symbol) PrimePi[x] gives the number of primes \[Pi] (x) less than or equal to x.
Some integer functions. The remainder on dividing 17 by 3. The integer part of 17/3.
Building on its broad strengths in mathematics in general, and in special functions in particular, Mathematica provides a unique level of support for multiplicative number ...
RiemannR[x] gives the Riemann prime counting function R(x).
Building on its broad strengths in mathematics in general, and in special functions in particular, Mathematica provides a unique level of support for analytic number theory, ...
NextPrime[n] gives the next prime above n.NextPrime[n, k] gives the k\[Null]^th prime above n.
Packing a large number of sophisticated algorithms—many recent and original—into a powerful collection of functions, Mathematica draws on almost every major result in number ...
Prime
(Built-in Mathematica Symbol) Prime[n] gives the n\[Null]^th prime number.
The primes have been a focal point for investigations of numbers for more than two millennia. Mathematica implements state-of-the-art algorithms for handling both primes and ...
Mathematica contains the world's largest collection of number theoretic functions, many based on specially developed algorithms.