numtheory(deprecated)
pi
number of primes less than or equal to
Calling Sequence
Parameters
Description
Examples
pi(n)
n
-
expression, assumed to be of type integer
Important: The numtheory package has been deprecated. Use the superseding command NumberTheory[PrimeCounting] instead.
The function pi(n) computes the number of prime numbers less than or equal to the given integer n.
with⁡numtheory:
pi⁡10
4
pi⁡100
25
pi⁡1000
168
pi⁡10000
1229
nops⁡select⁡isprime,`$`⁡2..10000
Li⁡10000.0
1246.137216
10000.0ln⁡10000.0
1085.736205
See Also
isprime
ithprime
Li
NumberTheory[PrimeCounting]
Pi
type[prime]
Download Help Document