Prime Number Checker
Check whether a number is prime and break it into its prime factors.
Processing: This tool runs entirely in your browser. Your input and any file you open stay on your device — nothing is uploaded to a server.
How to use the prime number checker
- Fill in the fields — they start with a worked example.
- Read the answer, and the arithmetic shown beneath it.
- Copy the results, or adjust the inputs to compare scenarios.
About this tool
A prime has exactly two divisors: one and itself. Everything else breaks down into primes in exactly one way — the fundamental theorem of arithmetic — which is what the factorisation shows.
Trial division only needs to reach the square root of the number, because any larger factor must pair with a smaller one already tested. That is why checking even large numbers is quick.
Common uses
- Checking whether a number is prime.
- Finding the prime factors for schoolwork.
- Listing all divisors of a number.
Frequently asked questions
- Is 1 a prime number?
- No. A prime has exactly two distinct divisors, and 1 has only one. Excluding it keeps prime factorisation unique.
- Why only check up to the square root?
- Because factors come in pairs. If a number has a factor above its square root, the matching factor is below it and has already been found.
Related tools
GCD & LCM Calculator
Find the greatest common divisor and lowest common multiple of several numbers.
Fraction Calculator
Add, subtract, multiply or divide two fractions and simplify the result.
Number Base Converter
Convert numbers between binary, octal, decimal, hexadecimal and any base to 36.
Average, Median & Mode Calculator
Find the mean, median, mode, range and standard deviation of a list of numbers.