Prime Numbers 1 to 100

All 25 primes under 100, how to find them yourself, and a two-second test for any number

There are 25 prime numbers between 1 and 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. A prime is a whole number greater than 1 whose only factors are 1 and itself. 1 is not prime, and 2 is the only even prime.

The primes from 1 to 100, ten at a time

The count thins out as the numbers grow: four primes in the first ten, only one in the nineties. Every prime above 5 ends in 1, 3, 7 or 9, because anything ending in an even digit is divisible by 2 and anything ending in 5 or 0 is divisible by 5.

RangePrimesCount
1–102, 3, 5, 74
11–2011, 13, 17, 194
21–3023, 292
31–4031, 372
41–5041, 43, 473
51–6053, 592
61–7061, 672
71–8071, 73, 793
81–9083, 892
91–100971

How to find them: the sieve of Eratosthenes

Write out 2 to 100. Circle 2, then cross out every other multiple of 2 (4, 6, 8 …). Circle the next number still standing, 3, and cross out its multiples (9, 15, 21 …). Do the same for 5 and for 7.

Then stop. Every composite number up to 100 has a factor no bigger than 10, because 11 × 11 = 121 is already past 100. So once 2, 3, 5 and 7 have been sieved, everything left standing is prime — exactly the 25 numbers above.

Is this number prime? A quick test

Only try dividing by the primes up to the square root of the number. For anything under 100 that means 2, 3, 5 and 7 — four checks. For a number under 400, add 11, 13, 17 and 19.

The divisibility rules make those checks instant: an even last digit means 2 divides it, a digit sum that is a multiple of 3 means 3 does, a last digit of 0 or 5 means 5 does. Seven is the only one that usually needs actual division.

The numbers people most often mistake for primes are odd numbers that just look awkward: 51 = 3 × 17, 57 = 3 × 19, 87 = 3 × 29, 91 = 7 × 13. Each fails one of the four checks.

Why primes matter

Every whole number above 1 is either prime or a product of primes in exactly one way — 60 = 2 × 2 × 3 × 5 and nothing else. That is why primes are called the building blocks of arithmetic, and why simplifying a fraction or finding a common denominator is really a question about shared prime factors.

Primes also run modern encryption. Multiplying two huge primes is easy; working backwards from the product to the two primes is so slow that it keeps online banking secure.

Prime factorisations of 2 to 30

Every number is a product of the primes above. These are the first few written out — primes stand alone.

NumberPrime factorsPrime?
22Yes
33Yes
42 × 2No
55Yes
62 × 3No
77Yes
82 × 2 × 2No
93 × 3No
102 × 5No
1111Yes
122 × 2 × 3No
1313Yes
142 × 7No
153 × 5No
162 × 2 × 2 × 2No
1717Yes
182 × 3 × 3No
1919Yes
202 × 2 × 5No
213 × 7No
222 × 11No
2323Yes
242 × 2 × 2 × 3No
255 × 5No
262 × 13No
273 × 3 × 3No
282 × 2 × 7No
2929Yes
302 × 3 × 5No

Frequently asked questions

How many prime numbers are there between 1 and 100?

25. They are 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.

Is 1 a prime number?

No. A prime has exactly two different factors, 1 and itself. The number 1 has only one factor, so it is neither prime nor composite.

Is 2 a prime number?

Yes. Its only factors are 1 and 2, which makes it the smallest prime and the only even one — every other even number is divisible by 2.

Is 91 a prime number?

No. 91 = 7 × 13. It is the most commonly mistaken number under 100 because it is odd, does not end in 5 and its digits add to 10.

What is the largest prime number under 100?

97. The next prime after it is 101.

Primes are the backbone of simplifying fractions and of the divisibility rules page; the division calculator shows the remainder whenever a number does not divide exactly.