Worked example
Is 91 prime? You only need to test divisors up to √91 ≈ 9.5, so try 2, 3, 5 and 7. It isn’t even, its digits add to 10 (not a multiple of 3), it doesn’t end in 0 or 5, but 91 ÷ 7 = 13. 91 is not prime: it divides by 7 (91 = 7 × 13). By contrast, 97 survives 2, 3, 5 and 7: 97 is prime: no whole number from 2 up to √97 ≈ 9.85 divides it.
The primes below 100
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. There are 25 of them.
How many primes there are
| Up to | Number of primes |
|---|---|
| 100 | 25 |
| 1,000 | 168 |
| 10,000 | 1,229 |
| 100,000 | 9,592 |
| 1,000,000 | 78,498 |
Primes thin out as numbers grow, roughly like n ÷ ln(n) (the prime number theorem), but Euclid proved over 2,000 years ago that they never run out.
Quick divisibility tests
- By 2: the last digit is even.
- By 3: the digits add up to a multiple of 3.
- By 5: the last digit is 0 or 5.
- By 7: double the last digit and subtract it from the rest; repeat. 91: 9 − 2 = 7, so yes.
- By 11: alternately add and subtract the digits; a result of 0 or a multiple of 11 means yes.
Prime numbers keep the internet safe: RSA encryption multiplies two huge primes, and its security rests on how hard it is to factor the product back. That is also why a checker can say a 24-digit number is prime almost instantly while factoring a 600-digit product is out of reach.
Related tools
- Quadratic equation solver
- LCM and GCF calculator
- Scientific notation converter
- Long division calculator
- Pythagorean theorem calculator
- Exponent and log calculator
- Matrix calculator
- Fraction calculator
- Scientific calculator
Sources
Checked on November 26, 2026:
- OEIS A000040: The prime numbers
- OEIS A014233: Smallest numbers that fool Miller–Rabin with the first n prime bases
- GIMPS: Great Internet Mersenne Prime Search
Frequently asked questions
What is a prime number?
Is 1 a prime number?
Is 2 the only even prime?
How does the checker test big numbers?
What is the largest known prime?
How do I list primes?
Last updated: 2026-11-26