// Utilities · Mathematics
Prime Generator
Generate the first n prime numbers using a fast 6k±1 trial-division algorithm. Preview results in-browser, filter them, and download as JSON.
Up to 1 M primes (default)Async with progress barStop mid-generationFilter resultsJSON downloadClient-side only
How many primes?
Estimates
Primes to generate
100
Approx. value of P(n)
~614
Did you know?
- • There are 78,498 primes below 1,000,000.
- • The 1,000th prime is 7,919.
- • By the Prime Number Theorem, P(n) ≈ n ln n.
- • Twin primes differ by 2 (e.g. 11 & 13). Infinitely many are conjectured to exist.
- • The largest known prime (2024) has over 41 million digits.