How it works
A number greater than 1 is checked for any whole-number factor other than 1 and itself. If none exists, it is prime.
Formula: A prime number greater than 1 has no whole-number factors other than 1 and itself.
Examples
A prime number
17 is prime: no whole number between 2 and 16 divides evenly into it.
Not a prime number
18 is not prime: it divides evenly by 2, 3, 6 and 9, among others.
Things to keep in mind
- 0, 1 and negative numbers are not prime — this is a definition, not an error, so the calculator simply answers "no" for them.
- 2 is the only even prime number; every other even number has 2 as a factor.