This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Documentation / Mathematica / Built-in Functions / Mathematical Functions / Number Theory /

PrimePi

FilledSmallSquare PrimePi[x] gives the number of primes less than or equal to x.

FilledSmallSquare The argument of PrimePi can be any positive real number.

FilledSmallSquare PrimePi[1] gives 0.

FilledSmallSquare See Section 3.2.4.

FilledSmallSquare Implementation Notes: see Section A.9.4.

FilledSmallSquare See also: Prime, Zeta.

FilledSmallSquare New in Version 2.

Further Examples