PrimePi
PrimePi(x)
gives the number of primes less than or equal to
x
.
See
- Wikipedia - Prime-counting function
- Wikipedia - On the Number of Primes Less Than a Given Magnitude
- Fungrim - Prime numbers
Examples
>> PrimePi(100)25
>> PrimePi(-1)0
>> PrimePi(3.5)2
>> PrimePi(E)1
Implementation status
- ☑ - partially implemented