Checking a single number
Checking 97 confirms it's prime, since no whole number other than 1 and 97 divides it evenly.
Check if a number is prime or list all prime numbers in a range — free online prime tool.
About
Checks whether a number is prime, or lists every prime in a range, using a fast sieve algorithm.
Students and teachers use it to check homework and explore which numbers in a range are prime, while developers use it to generate quick reference lists of primes for algorithms and puzzles. It's one of many free generators on Toolapt, and like every tool here, it's free to use with no sign-up and no limit on how many times you run it.
Examples
3 worked examples
Checking 97 confirms it's prime, since no whole number other than 1 and 97 divides it evenly.
Checking 100 shows it's not prime, since it's divisible by 2, 5 and 10 among others.
Listing primes from 1 to 50 returns 15 numbers: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43 and 47.
FAQ
Quick answers to common questions about the Prime Number Checker and Generator.
It either checks whether a single whole number is prime, or lists every prime number within a range you choose.
Yes. It's free, with no sign-up, no watermark and no limit on how many times you use it.
Yes. Every calculation happens entirely on your own device — nothing is sent to a server.
A whole number greater than 1 that has no divisors other than 1 and itself. 0 and 1 are not prime, and the tool follows that definition exactly.
Single numbers can be checked up to Number.MAX_SAFE_INTEGER (about 9 quadrillion); beyond that, results can't be guaranteed exact.
Listing primes uses a sieve that allocates memory for the whole range, so it's capped at 5,000,000 as the upper bound and 2,000,000 numbers spanned, to keep it fast in the browser.
Yes. The page is fully responsive and works on mobile, tablet and desktop browsers alike.
In range mode, only the first 2,000 results are shown on screen (use Copy for the full list), and the range itself is capped at 5,000,000.
Did Prime Number Checker and Generator work for you?