Home / Calculators / Tool

Prime Number Checker

Check whether an integer is prime and see why.

Check whether an integer is prime and see why. A prime number has exactly two positive factors, 1 and itself.

✦ Interactive calculatorFree · No sign-up

Enter the values shown in each labelled field. Invalid values return a specific explanation.

YOUR RESULT
Ready to calculate
Enter your values and choose Calculate.

Results are calculated locally in your browser. Verify critical calculations independently.

How this calculator works

A prime number has exactly two positive factors, 1 and itself. Check divisibility by integers no greater than the square root of the number.

Worked example

97 is prime: no integer from 2 through 9 divides 97.

Important limitations

Only safe integers can be checked; 0, 1 and negative integers are not prime.

Related calculators