About this calculator
Enter a whole number to check it, and see the nearest primes on either side.
How to use it
- Enter a whole number.
- Read whether it is prime.
The formula
- √n
- only factors up to the square root need checking
Worked example
97
- No number from 2 to 9 divides 97, so it is prime.
- The previous prime is 89 and the next is 101.
What the result means
2 is the only even prime.
Prime numbers up to 100
Every prime after 3 is one more or one less than a multiple of 6, but not every such number is prime: 25 = 6 × 4 + 1 is not.
| Range | Primes | Count |
|---|---|---|
| 1–10 | 2, 3, 5, 7 | 4 |
| 11–20 | 11, 13, 17, 19 | 4 |
| 21–30 | 23, 29 | 2 |
| 31–40 | 31, 37 | 2 |
| 41–50 | 41, 43, 47 | 3 |
| 51–60 | 53, 59 | 2 |
| 61–70 | 61, 67 | 2 |
| 71–80 | 71, 73, 79 | 3 |
| 81–90 | 83, 89 | 2 |
| 91–100 | 97 | 1 |
Checking a number by hand
You only need to try prime divisors up to the square root. For 221, √221 ≈ 14.9, so try 2, 3, 5, 7, 11 and 13.
- 2: 221 is odd.
- 3: the digit sum 5 is not a multiple of 3.
- 5: it does not end in 0 or 5.
- 7: 7 × 31 = 217, remainder 4.
- 11: 11 × 20 = 220, remainder 1.
- 13: 13 × 17 = 221, so 221 is not prime. The calculator shows the same: divisible by 13, prime factors 13 × 17.
Terms that are often confused
- Co-prime numbers share no factor other than 1 but need not be prime themselves: 8 and 15 are co-prime.
- Twin primes differ by 2, such as 11 and 13, or 59 and 61.
- A composite number has more than two factors. 0 and 1 are neither prime nor composite.
Assumptions
- Whole numbers up to 10¹².
Limitations
- Larger numbers need specialised tests.
Frequently asked questions
Is 1 a prime number?
No; a prime needs exactly two different factors.
Is 2 prime?
Yes, the only even prime.
How many primes are below 100?
25.
Is 51 a prime number?
No. 51 = 3 × 17; its digit sum, 6, is divisible by 3.
Is 91 a prime number?
No. 91 = 7 × 13. It is easy to miss because it is not divisible by 2, 3 or 5.
What is the smallest three-digit prime?
101. The largest two-digit prime is 97.
Last reviewed on 12 October 2026. How we calculate and check. Found a mistake? Tell us.

