How to use the Prime Number Checker
- Enter a whole number from 0 to 1,000,000,000,000,000.
- Press Calculate.
Formula
A prime is a whole number greater than 1 whose only divisors are 1 and itself. It is enough to test divisors up to √n, because any larger factor would pair with a smaller one already tested.
Examples
- 97 is prime: no number from 2 to 9 divides it.
- 360 = 2³ × 3² × 5, with (3+1)(2+1)(1+1) = 24 divisors.
Frequently asked questions
Is 1 a prime number?
No. By definition a prime has exactly two distinct divisors, and 1 has only one.
Is 2 the only even prime?
Yes. Every other even number is divisible by 2.