Check instantly whether any number is prime, see its prime factorization, find the next and previous prime, and list every prime number in a range.
List primes in a range
Free and private: this tool runs in your browser and nothing you enter is uploaded.
How to use the Prime Number Checker
- Type any whole number up to 9 quadrillion.
- The result shows instantly whether it is prime, with the factorization if it is not.
- See the previous and next prime numbers.
- To list many primes, enter a range (up to 2 million numbers) and click “List primes”.
What is a prime number?
A prime number is a whole number greater than 1 that can only be divided evenly by 1 and itself: 2, 3, 5, 7, 11, 13… Every other number greater than 1 is composite and can be written as a unique product of primes – its prime factorization (for example 360 = 2³ × 3² × 5).
How the checker works
The tool uses optimized trial division by 2, 3 and numbers of the form 6k ± 1 up to √n. This is exact for every number JavaScript can represent precisely (up to 2⁵³ − 1) and takes a fraction of a second even for large primes.
Key features of our Prime Number Checker
- Checks numbers up to 9 quadrillion
- Prime factorization with exponents
- Previous and next prime
- Lists primes in any range
- Up to 2 million numbers per list
- Instant results
Frequently asked questions
Is 1 a prime number?
No. By definition a prime has exactly two different divisors; 1 has only one.
Is 2 the only even prime?
Yes. Every other even number is divisible by 2.
How many primes are there below 100?
There are 25 primes below 100. Use the range tool to list them.
Is the Prime Number Checker free?
Yes. The Prime Number Checker is free to use, with no sign-up, no limits and nothing to install. It runs entirely in your browser, so what you type or open stays on your device.
More free tools you may need
- Scientific Calculator
- Sum Calculator
- RPN Calculator
- Aspect Ratio Calculator
- Mortgage Calculator
- Minutes to Hours Converter
The Prime Number Checker is one of our free calculators. Every tool runs in your browser on Windows, Mac, Linux, Android and iPhone, with no sign-up.