Prime Number Generator
FreeGenerate a list of prime numbers up to any limit
Max limit 100,000.
About Prime Number Generator
Need a whole run of primes, not just one? Maybe for a math exercise, a coding problem, or testing an algorithm. Writing them out by hand gets slow fast once you pass the small ones. This generator produces every prime up to whatever limit you set, neatly listed and ready to copy.
Enter an upper limit and the tool lists all prime numbers up to it. It's free, runs in your browser, and needs no signup. Whether you want the primes under a hundred for a worksheet or a larger batch for a program, you get the full sequence in one click without any manual sieving.
Common uses
- Generating a list of primes for a math assignment
- Building test data for a programming exercise
- Studying the distribution of primes within a range
- Quickly grabbing all primes under a chosen limit
How to use
- 1
Configure options
Set your preferences using the options panel below.
- 2
Click Generate
Click the process button to generate your result instantly.
- 3
Copy or download
Copy the result to clipboard or download it directly to your device.
Why ToolHub?
- 100% Free — no account needed
- Works in your browser — no software required
- Instant results
- Secure and private
- No data stored
- Simple to use
FAQ
How high a limit can I set?
You can set a generous upper limit. Very large limits take longer and depend on your browser, but typical ranges generate instantly.
Does the list include the number two?
Yes. Two is the smallest prime and the only even one, so it appears at the start of every list.
Can I copy the whole list at once?
The primes are shown together so you can select and copy them in one go for use elsewhere.
Can I use Prime Number Generator on mobile?
Yes — ToolHub is fully responsive and works on iPhone, Android, tablets and all modern browsers. No app install needed.