Prime Number Checker
Check whether a whole number is prime, and get its prime factorisation, the next prime and the previous prime.
These tools are for study and quick checking. A result is only as good as the numbers you enter and the simplifying assumptions in the formula. For published, regulated or safety-critical work, check it against a trusted source or an instrument.
How it works
- Enter your values in the boxes. Where a box has a unit beside it, check the unit before you read the answer.
- The answer updates as you type, so there is no button to press.
- Use Copy results to keep the answer. Check the formula and its limits below if the result will go into a report or an experiment.
The formula
a number n is prime if no whole number from 2 to the square root of n divides it
Frequently asked questions
Is 1 prime?
No. A prime has exactly two divisors, and 1 has only one.
How big a number can it check?
Up to 9,007,199,254,740,991, which is the largest whole number a browser stores exactly.
Is what I enter sent anywhere?
No. The calculation is done in your browser, so your numbers are not sent to a server or saved.
Related tools
Combination Calculator
Count the ways to choose r items from n when order does not matter, with or without repeats.
Permutation Calculator
Count the ways to arrange r items chosen from n when order matters, with or without repeats.
Fraction Calculator
Add, subtract, multiply or divide two fractions and see the answer in lowest terms, as a mixed number and as a decimal.