Skip to main content
Reviewed for accuracy by Manoj Kumar, Mathematics Educator

Prime Counting Function Calculator

Calculator

Adjust values & calculate

Enter your values below. Every result is computed in your browser โ€” no data is sent to any server.

Formula: pi(x) ~ x / ln(x) ~ li(x)

Your Result

Worked example โ€” pi(100) = 25 | n/ln(n) = 21.71 (13.2% error) | Density = 25%

Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy