Prime Number Checker
Type any whole number to find out if it is prime. You get the reason, its prime factorization, all its factors and the nearest primes.
Is a prime number?
No, 91 is not prime
- Prime factorization: 7 × 13
- Number of factors: 4
- Previous prime: 89
- Next prime: 97
How it's worked out
- It doesn't divide by 2, 3 or 5, but trying the next primes, 91 ÷ 7 = 13 exactly.
- So 91 = 7 × 13. It has more than two factors, which makes it a composite number.
Factors of 91
1, 7, 13, 91
Factor pairs
- 1 × 91
- 7 × 13
How to tell if a number is prime
A prime number has exactly two factors, 1 and itself. To test one by hand, divide it by each prime in turn (2, 3, 5, 7, 11…) and stop once the prime is bigger than the number's square root. If nothing divides evenly, the number is prime. You can stop at the square root because factors come in pairs: if 91 = 7 × 13, the smaller one, 7, is always at or below √91 ≈ 9.5.
Quick divisibility rules
| Divides by | If… | Example |
|---|---|---|
| 2 | The last digit is even (0, 2, 4, 6 or 8). | 348 |
| 3 | The digits add up to a multiple of 3. | 471 (4 + 7 + 1 = 12) |
| 5 | The last digit is 0 or 5. | 635 |
| 7 | Double the last digit and subtract it from the rest; the result divides by 7. | 343 (34 − 6 = 28) |
| 11 | Alternately add and subtract the digits; the result divides by 11 (0 counts). | 1,331 (1 − 3 + 3 − 1 = 0) |
Prime numbers from 1 to 100
There are 25 primes below 100. Notice that after 2 and 5, every prime ends in 1, 3, 7 or 9, and that 1 is not on the list. Our article Is 1 a prime number? explains why.
List of prime numbers up to 1,000
All 168 primes below 1,000:
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997
Practice it
A tool gives you the answer. A little practice means you won't need it next time.
- Print free division worksheets with answer keys.
- Read: Is 1 a Prime Number? Why the Answer Is No
- Read: Is 0 Even or Odd? The Answer, Explained Simply
Frequently asked questions
What is a prime number?
A whole number bigger than 1 with exactly two factors: 1 and itself. 7 is prime because only 1 × 7 makes it. 8 is not, because 2 × 4 also makes 8.
Is 1 a prime number?
No. 1 has only one factor, and a prime needs exactly two. Mathematicians leave 1 out so that every number has just one prime factorization.
How do you check if a big number is prime?
Try dividing it by the primes 2, 3, 5, 7, 11 and so on, stopping at its square root. If none of them divide it evenly, it is prime. For 97 you only need to try 2, 3, 5 and 7, because √97 is less than 10.
Why is 2 the only even prime?
Every even number divides by 2. For 2 itself that is fine (its factors are just 1 and 2), but every other even number has 2 as an extra factor, so it can't be prime.
What is prime factorization?
Writing a number as a product of primes. 60 = 2² × 3 × 5. Every whole number bigger than 1 has exactly one prime factorization, which is why primes are called the building blocks of numbers.
How many prime numbers are there?
Infinitely many: there is no biggest prime. There are 25 primes below 100 and 168 below 1,000, and they slowly get rarer as numbers grow.