p(n) — Nth Prime

Segmented sieve + precomputed table · Runs in your browser via WASM
Loading WASM… Loading table…
Sieving…
Quick examples

How it works

Covers n from 1 to 73,301,931,359 (all primes up to 2 trillion). Typical query time: under 300ms in the browser.