CDS Mathematics · Number System
Prime Numbers & Primality
What a prime is, how to test one by trial division up to the square root, why a question about primes summing to something odd almost always forces one of them to be 2, and which plausible prime-generating forms are traps.
Why this matters
Twenty-two PYQs and not one of them rated HARD — this is the most reliable unit in the chapter. Almost every question is recall or a single structural argument. The one argument to own is the parity move that pins a prime to 2: it appears in five of the twenty-two and turns a search into a one-line deduction.
Concept 1 of 6
Primes, composites, and the numbers that are neither
Intuition
Definition
A positive integer is prime if its only positive divisors are 1 and ; otherwise it is composite.
- is neither prime nor composite — it has exactly one divisor.
- is the only even prime, which is why parity arguments are so powerful here.
- There are 25 primes below 100, and 15 below 50.
- Two numbers are coprime (relatively prime) when their HCF is 1; neither needs to be prime.
| Claim | Verdict | Why |
|---|---|---|
| 1 is prime | False | It has one divisor, not two |
| 1 is composite | False | It is neither |
| 2 is prime | True | Divisors 1 and 2 only |
| Every prime is odd | False | 2 is even This is the single most useful exception in the chapter — it is what lets you force one prime to be 2. |
| Number of primes below 100 | 25 | 2, 3, 5, ..., 89, 97 |
| Number of primes below 50 | 15 | So 10 lie between 50 and 100 |
| Possible unit digits of a prime | 1, 2, 3, 5, 7, 9 | Six digits; 0, 4, 6, 8 give an even number above 2 |
| Smallest odd composite | 9 | 1 is neither; 3, 5, 7 are prime |
| A product of two composites can be coprime | True | 4 and 9 share no prime factor |
Practice this conceptself-check · 4 quick reps
From the bank · past-year question
[Q21 · CDS (I) 2017 — Elementary Mathematics · 2017]
Coprime does not mean prime
Concept 2 of 6
Testing a number for primality by trial division
Intuition
Definition
To test : divide by each prime with . If none divides , then is prime.
- Only primes need testing, since any composite divisor carries a smaller prime one.
- Useful square-root landmarks: , , , .
So a three-digit number needs primes only up to 31, and a number below 2500 only up to 47.
Trial-division bound
Worked example
Practice this conceptself-check · 4 quick reps
From the bank · past-year question
[Q7 · CDS (I) 2023 — Elementary Mathematics · 2023]
Numbers near 400 or 1000 look prime and often are not
Concept 3 of 6
Forcing a prime to be 2 with a parity argument
Intuition
Definition
The argument in its usual forms:
- Odd total. A sum of two primes is odd only if one of them is even, i.e. equals 2.
- Odd count. Three odd primes sum to an odd number; if the target is even, one prime is 2.
- Even product. If a product of primes is even, one factor is 2.
- Both sum and difference prime. If and are odd primes then and are both even, and they cannot both be 2 — so one of is 2.
The forcing rule
Worked example
Practice this conceptself-check · 4 quick reps
From the bank · past-year question
[Q14 · CDS (II) 2019 — Elementary Mathematics · 2019]
Having forced the 2, still check the survivor is prime
Concept 4 of 6
Coprimality and Euclid's lemma
Intuition
Definition
and are coprime when .
- Consecutive integers are always coprime: any common divisor divides their difference, which is 1.
- If is coprime to both and , it is coprime to — no new prime factor appears in a product.
- Euclid's lemma: if a prime divides then or . This needs prime: but divides neither.
- If and , then .
Coprimality via the difference
Worked example
Practice this conceptself-check · 4 quick reps
From the bank · past-year question
[Q72 · CDS (I) 2019 — Elementary Mathematics · 2019]
Euclid's lemma needs the divisor to be PRIME
Concept 5 of 6
Forms that look like they generate primes but do not
Intuition
Definition
The distinction that matters is direction:
- Every prime greater than 3 is of the form — that direction is true.
- But a number of the form need not be prime. The converse fails, and confusing the two directions is the whole trap.
Twin primes are pairs differing by 2; a prime triple spaced by 2 exists only once, as .
| Form or claim | Always prime? | First failure |
|---|---|---|
| No | gives | |
| No | gives | |
| Every prime is | True | This is the valid direction True one way, false the other. The question always tests the false direction. |
| (Mersenne) | No | gives |
| No | gives | |
| Product of first primes, plus 1 | No | gives It is prime for to — 3, 7, 31, 211, 2311 — which is why the statement looks safe. |
| Prime triples spaced by 2 | Only once | ; one of any such triple is a multiple of 3 |
| Difference of two primes | Always even | Both are odd |
Practice this conceptself-check · 4 quick reps
From the bank · past-year question
[Q7 · CDS (II) 2019 — Elementary Mathematics · 2019]
The converse of a true statement about primes is usually false
Concept 6 of 6
Breaking a number into its prime factors
Intuition
Definition
Every integer above 1 factorises into primes in exactly one way (the fundamental theorem of arithmetic). Procedure: try in turn, dividing out each prime as many times as it goes, and stop when the remaining quotient is less than the square of the next prime — the quotient is then prime. The alternating-sum test for 11 is worth having ready here, because 11 is the first divisor that no other quick rule catches.
Unique factorisation
Worked example
Practice this conceptself-check · 4 quick reps
From the bank · past-year question
[Q1 · CDS (II) 2021 — Elementary Mathematics · 2021]
The LCM of two distinct primes is their product
Summary — formulas & gotchas at a glance
A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.
Formulas (4)
- Testing a number for primality by trial division
Trial-division bound
- Forcing a prime to be 2 with a parity argument
The forcing rule
- Coprimality and Euclid's lemma
Coprimality via the difference
- Breaking a number into its prime factors
Unique factorisation
Reference tables (2)
Primes, composites, and the numbers that are neither9 rows
| Claim | Verdict | Why |
|---|---|---|
| 1 is prime | False | It has one divisor, not two |
| 1 is composite | False | It is neither |
| 2 is prime | True | Divisors 1 and 2 only |
| Every prime is odd | False | 2 is even This is the single most useful exception in the chapter — it is what lets you force one prime to be 2. |
| Number of primes below 100 | 25 | 2, 3, 5, ..., 89, 97 |
| Number of primes below 50 | 15 | So 10 lie between 50 and 100 |
| Possible unit digits of a prime | 1, 2, 3, 5, 7, 9 | Six digits; 0, 4, 6, 8 give an even number above 2 |
| Smallest odd composite | 9 | 1 is neither; 3, 5, 7 are prime |
| A product of two composites can be coprime | True | 4 and 9 share no prime factor |
Forms that look like they generate primes but do not8 rows
| Form or claim | Always prime? | First failure |
|---|---|---|
| No | gives | |
| No | gives | |
| Every prime is | True | This is the valid direction True one way, false the other. The question always tests the false direction. |
| (Mersenne) | No | gives |
| No | gives | |
| Product of first primes, plus 1 | No | gives It is prime for to — 3, 7, 31, 211, 2311 — which is why the statement looks safe. |
| Prime triples spaced by 2 | Only once | ; one of any such triple is a multiple of 3 |
| Difference of two primes | Always even | Both are odd |
Watch out for (6)
- Coprime does not mean prime→ Primes, composites, and the numbers that are neither
- Numbers near 400 or 1000 look prime and often are not→ Testing a number for primality by trial division
- Having forced the 2, still check the survivor is prime→ Forcing a prime to be 2 with a parity argument
- Euclid's lemma needs the divisor to be PRIME→ Coprimality and Euclid's lemma
- The converse of a true statement about primes is usually false→ Forms that look like they generate primes but do not
- The LCM of two distinct primes is their product→ Breaking a number into its prime factors
Drill every past-year question on this subtopic
22 questions from the bank — paginated, with cart and Word-export support.