Prime Numbers
The definition, and two common exceptions
A prime number is a natural number greater than 1 whose only positive divisors are 1 and itself. A number greater than 1 that isn't prime is composite.
0 is neither prime nor composite: the two words are only defined for natural numbers greater than 1. (0 couldn't pass the test anyway: every non-zero number divides 0, so it has far more than two divisors.)
1 is also neither: a prime needs exactly two distinct divisors (1 and itself), but 1's only divisor is 1 itself, just one.
2 is the only even prime. Every other even number has 2 as a divisor as well as 1 and itself.
Prime numbers up to 100
There are 25 primes below 100:
| Range | Primes | Count |
|---|---|---|
| 1 to 10 | 2, 3, 5, 7 | 4 |
| 11 to 20 | 11, 13, 17, 19 | 4 |
| 21 to 30 | 23, 29 | 2 |
| 31 to 40 | 31, 37 | 2 |
| 41 to 50 | 41, 43, 47 | 3 |
| 51 to 60 | 53, 59 | 2 |
| 61 to 70 | 61, 67 | 2 |
| 71 to 80 | 71, 73, 79 | 3 |
| 81 to 90 | 83, 89 | 2 |
| 91 to 100 | 97 | 1 |
Worked example: checking primality
Is prime?
Solution: It's enough to test divisibility by every prime up to (2, 3, 5, and 7), since any factor larger than the square root would have to pair with one smaller than it, already caught. is odd (not divisible by 2), its digit sum 10 isn't divisible by 3, it doesn't end in 0 or 5 (not divisible by 5), but , so 91 is composite, not prime.
Compare 97: , and none of 2, 3, 5 or 7 divides it, so 97 is prime.
Prime factorization and distinct prime factors
The Fundamental Theorem of Arithmetic says every composite number can be written as a product of primes in exactly one way, apart from the order of the factors. The primes that appear are its prime divisors (or prime factors); counted once each, they are its distinct prime factors.
Example: factorize 360 and list its distinct prime factors.
Solution: Keep dividing by the smallest prime that works: .
Its distinct prime factors are 2, 3 and 5: three of them, even though six primes multiply together to make 360. The exponents also give its number of divisors: .
Counting the factors of a number
Prime factorization also tells you how many factors a number has. Write . Every factor of is made by choosing, for each prime, an exponent from 0 up to , independently. So the number of factors, counting 1 and itself, is:
A small check. , so it has factors: 1, 2, 3, 4, 6, 9, 12, 18 and 36.
Worked example. How many factors does 9600 have? Factorize first: . Add 1 to each exponent and multiply: .
Already factorized. has factors. A prime that appears to the first power still contributes a factor of 2, as the 3 in 9600 does.
Twin primes
A pair of primes exactly 2 apart is called a twin prime pair, like or . The very first few pairs are .
Co-prime numbers
Two numbers are co-prime when their HCF is 1, meaning they share no prime factor. Neither has to be prime itself: and are co-prime. Any two different primes are always co-prime.
Common mistakes
- Calling 1 a prime. It has only one divisor. The smallest prime is 2.
- Trusting numbers that look prime. 51 (), 57 () and 91 () are the usual traps. Test every prime up to the square root.
- Stopping before the square root. You need every prime up to and no further: 2, 3, 5 and 7 settle 97, but skipping 7 for 91 would miss its factor.
- Mixing up distinct and repeated prime factors. 360 has three distinct prime factors (2, 3, 5), but six prime factors counted with repetition.
- Thinking co-prime means both numbers are prime. 8 and 15 are co-prime and neither is prime.
- Multiplying the exponents instead of the exponents plus one when counting factors. has factors, not .
Where this comes up in exams
The 2025-26 CBSE Class X syllabus opens its Real Numbers unit with the Fundamental Theorem of Arithmetic, the prime factorization result above.
Checked against CBSE Mathematics curriculum, Classes IX-X (2025-26). Syllabi can change from year to year, so confirm with the latest official notification for your exam.
- Fit it into your week with the free timetable generator.
- Mark it off as you revise in the syllabus tracker.
- See how long you have left: exam countdowns.