NumberTheory
PrimeCounting
number of prime numbers less than a number
Calling Sequence
Parameters
Description
Examples
Compatibility
PrimeCounting(x)
pi(x)
x
-
positive real number
The PrimeCounting(x) command computes the number of prime numbers less than or equal to x.
pi is an alias of PrimeCounting.
with⁡NumberTheory:
PrimeCounting⁡1
0
pi⁡π
2
PrimeCounting⁡10000
1229
numelems⁡select⁡isprime,seq⁡1..10000
The prime counting function is approximated by Li⁡x and xln⁡x.
plot⁡PrimeCounting⁡x,Li⁡x,xln⁡x,x=1..500,legend=pi⁡x,Li⁡x,xln⁡x
The NumberTheory[PrimeCounting] command was introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
See Also
ithprime
Download Help Document