Mathematica > Mathematics and Algorithms > Number Theory > Prime Numbers >
Mathematica > Mathematics and Algorithms > Mathematical Functions > Number Theoretic Functions > Prime Numbers >

PrimePi

PrimePi[x]
gives the number of primes Pi(x) less than or equal to x.
  • Integer mathematical function, suitable for both symbolic and numerical manipulation.
  • The argument of PrimePi can be any positive real number.
  • PrimePi automatically threads over lists.
New in 2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team