Sub topic 3
Primes, Composites and Coprime Numbers
Assume you know integer arithmetic, division with remainders, divisibility, and basic exponent notation. This chapter uses positive integers unless stated otherwise.
Prime and composite numbers
A prime number is an integer greater than 1 with exactly two positive factors: 1 and the number itself. Examples are 2, 3, 5, 7, 11, and 13.
A composite number is an integer greater than 1 with more than two positive factors. For example, 12 is composite because its factors are 1, 2, 3, 4, 6, and 12.
The number 1 is neither prime nor composite. It has only one positive factor, itself.
| Number | Type | Reason |
|---|---|---|
| 2 | Prime | Factors are 1 and 2 |
| 17 | Prime | Only 1 and 17 divide it |
| 15 | Composite | Factors include 3 and 5 |
| 1 | Neither | It has only one factor |
Every composite number can be expressed as a product of primes. This expression is called its prime factorization. For example:
- 60 = 2 × 2 × 3 × 5
- 60 = 2² × 3 × 5
The prime factorization is unique apart from the order of the factors. This fact makes prime numbers the basic building blocks for HCF and LCM calculations.
Testing whether a number is prime
To test whether n is prime, check whether any prime number up to the square root of n divides it. If none does, n is prime.
For example, to test 97, note that the square root of 97 is slightly less than 10. Check 2, 3, 5, and 7:
- 97 is not even.
- Its digit sum is 16, so 3 does not divide it.
- It does not end in 0 or 5.
- 97 divided by 7 leaves a remainder.
Therefore, 97 is prime.
You do not need to test composite divisors such as 4 or 9. If 4 divides a number, 2 already divides it. If 9 divides a number, 3 already divides it.
Coprime numbers
Two numbers are coprime, or relatively prime, when their HCF is 1. They share no factor greater than 1.
For example, 8 and 15 are coprime:
- Factors of 8: 1, 2, 4, 8
- Factors of 15: 1, 3, 5, 15
- Common factor: only 1
Coprime numbers do not have to be prime. The numbers 8 and 15 are both composite, but they are coprime. Also, any two different prime numbers are coprime.
If the prime factorizations of two numbers have no common prime, the numbers are coprime.
CAT uses
Prime and composite classification helps you:
- identify possible divisors quickly;
- construct or compare prime factorizations;
- decide whether two numbers are coprime;
- simplify later HCF and LCM calculations.
Exercise
Are 42 and 55 coprime? Explain without listing every factor.
Show answer
Yes. 42 = 2 × 3 × 7 and 55 = 5 × 11. They have no common prime factor, so their HCF is 1.