QuickToolbox

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

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