Prime Number Checker
Check whether a number is prime, list all of its factors and see its prime factorisation and nearest primes.
Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.
What the Prime Number Checker does
This prime number checker will check whether a number is prime, list all of its factors and see its prime factorisation and nearest primes. Fill in the single field and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for checking a number for a maths exercise. A related tool on this site is the quadratic equation solver.
How to use it
- Enter a whole number.
- The verdict appears immediately, with the prime factorisation below it.
- All divisors are listed for numbers up to ten million.
- The nearest primes above and below are shown for reference.
When to use it
- Checking a number for a maths exercise.
- Finding the prime factorisation for simplifying fractions or radicals.
- Choosing a prime modulus for a hash table size.
Common mistakes to avoid
- Thinking 1 is prime — it is not. A prime has exactly two distinct divisors, and 1 has only one.
- Assuming all odd numbers are prime; 9, 15, 21 and 25 are all odd and composite.
Frequently asked questions
Is 1 a prime number?
No. A prime must have exactly two distinct positive divisors, 1 and itself. The number 1 has only one divisor. Excluding it is also what keeps prime factorisation unique.
What is the largest number this can check?
Trial division stays fast well into the billions. Beyond about 10^15 JavaScript's number precision becomes a limit, and the divisor list is capped at ten million to keep the page responsive.