ADVERT
Prime Number Generator
Generate prime numbers by count or numeric range with quick export options and lightweight metrics.
How to use this tool
- Choose generation mode: first N primes or a start/end range.
- Run generation and review the resulting prime list plus summary metrics.
- Copy values or export TXT, CSV, or JSON output.
Output options
- Copy plain comma-separated primes for quick sharing.
- Export CSV for spreadsheet workflows.
- Export JSON with generation mode, metrics, and full list.
Performance notes
- First-N mode is intentionally capped to keep UI responsiveness.
- Range mode uses a sieve for efficient filtering in moderate intervals.
- Metrics include count, boundaries, and average prime gap.
FAQ
- Can I generate primes in a custom range?
- Yes. Switch to range mode and provide start and end values.
- Does the output include 2?
- Yes, whenever it falls inside the chosen mode and limits.
- Is generation done server-side?
- No. Prime generation runs locally in your browser.
ADVERT
ADVERT