prime_pi( x )

The prime counting function of x in SageMath. The number of primes less than or equal to x.

Plot on the real axis:

Special values:

Related functions: legendre_phi

Function category: miscellaneous functions sagemath-docs