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.
withNumberTheory:
PrimeCounting1
0
piπ
2
PrimeCounting10000
1229
numelemsselectisprime,seq1..10000
The prime counting function is approximated by Lix and xlnx.
plotPrimeCountingx,Lix,xlnx,x=1..500,legend=pix,Lix,xlnx
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