Skip to content

PrimePi

PrimePi(x)

gives the number of primes less than or equal to x.

See

Examples

>> PrimePi(100)
25
>> PrimePi(-1)
0
>> PrimePi(3.5)
2
>> PrimePi(E)
1

Implementation status

  • ☑ - partially implemented

Github