5. Prime and Composite Numbers

1. Introduction to Prime and Composite Numbers

Definition of Prime Numbers:

A prime number is a natural number greater than 1 that has exactly two distinct factors: 11 and the number itself i.e. number is divisible by 1 and itself only. If you try to divide by any number other than 1 and itself, then there will be some remainder. 

Examples:

  • 2,3,5,7,112, 3, 5, 7, 11 are prime numbers.

Definition of Composite Numbers:

A composite number is a natural number greater than 11 that has more than two factors i.e. composite number can be divided by a number other than 1 and itself without leaving any remainder .
Examples:

  • 4,6,8,9,124, 6, 8, 9, 12 are composite numbers.

Special Notes:

  1. 1 is neither prime nor composite.
  2. 22 is the only even prime number. All other even numbers are composite.

2. Identifying Prime and Composite Numbers

 

To determine if a number is prime:

  1. Check divisibility by 2,3,5,7,2, 3, 5, 7, \dots up to number\sqrt{\text{number}}.
  2. If no divisor is found, the number is prime. Otherwise, it is composite.

Example 1: Determine if 1919 is prime.

  • Check divisibility:
    19÷2,19÷3,19÷519 \div 2, 19 \div 3, 19 \div 5 → None are exact.
  • Since no divisors exist other than 11 and 1919, it is prime.

Example 2: Determine if 1818 is prime.

  • Check divisibility:
    18÷2=918 \div 2 = 9.
  • Since 1818 is divisible by 22, it is composite.

3. Properties of Prime and Composite Numbers

 

  1. Sum of two prime numbers:

    • Can be even or odd.
    • Example: 2+3=52 + 3 = 5 (odd), 2+7=92 + 7 = 9  (odd).
  2. Product of two prime numbers:

    • Always composite.
    • Example: 3×7=213 \times 7 = 21 .
  3. Composite numbers have more factors than prime numbers.


4. Advanced Concepts and Scenarios

 

Twin Primes:

Two prime numbers that differ by 22.
Examples: (3,5),(11,13),(17,19)(3, 5), (11, 13), (17, 19)  .

Goldbach’s Conjecture:

Every even number greater than 22 can be expressed as the sum of two prime numbers.
Example:

  • 4=2+24 = 2 + 2,
  • 6=3+36 = 3 + 3,
  • 8=3+58 = 3 + 5.

Prime Gaps:

The difference between consecutive primes.
Example:

  • Between 1111 and 1313, the gap is 22.
  • Between 1313 and 1717 the gap is 44.

5. Complex Scenarios with Examples

 

Example 4: Find the largest prime factor of 8484.

  1. Prime factorize 8484: 84÷2=42,42÷2=21,21÷3=7.84 \div 2 = 42, \quad 42 \div 2 = 21, \quad 21 \div 3 = 7.
    84=22×3×7.84 = 2^2 \times 3 \times 7.
  2. Largest prime factor: 77.

Example 5: Express 3636 as a sum of two prime numbers.

  • Possible pairs: 5+315 + 31, 7+297 + 29, 17+1917 + 19.

Answer: 36=5+3136 = 5 + 31 or 7+297 + 29 or 17+1917 + 19.

Example 6: Prove 9191 is composite.

  • Check divisibility:
    91÷7=1391 \div 7 = 13.
  • Factors: 1,7,13,911, 7, 13, 91.

Answer: 9191 is composite.


7. Practice Questions with Detailed Solutions

 

Q1: Determine if 3737 is prime.

Solution:
Check divisibility by 2,3,52, 3, 5: None are exact.
Answer: 3737 is prime.

Q2: Find the prime factorization of 7272.

Solution:

72÷2=36,36÷2=18,18÷2=9,9÷3=3,3÷3=1.72 \div 2 = 36, \quad 36 \div 2 = 18, \quad 18 \div 2 = 9, \quad 9 \div 3 = 3, \quad 3 \div 3 = 1.
72=23×32.72 = 2^3 \times 3^2.

Q3: Express 5050 as a sum of two primes.

Solution:

50=3+47or7+43.50 = 3 + 47 \quad \text{or} \quad 7 + 43.


8. Advanced Practice Questions with solution –

 

Q1: Identify all twin primes below 5050.

Twin primes are pairs of prime numbers that differ by 22.

  • Primes below 5050: 2,3,5,7,11,13,17,19,23,29,31,37,41,43,472, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47
  • Check pairs: (3,5),(5,7),(11,13),(17,19),(29,31),(41,43).(3, 5), \quad (5, 7), \quad (11, 13), \quad (17, 19), \quad (29, 31), \quad (41, 43).

Answer: Twin primes below 5050 are:
(3,5),(5,7),(11,13),(17,19),(29,31),(41,43)(3, 5), (5, 7), (11, 13), (17, 19), (29, 31), (41, 43)


Q2: Find the smallest composite number that is the product of three distinct primes.

The smallest three distinct primes are 2,3,52, 3, 5.
Their product:

2×3×5=30.2 \times 3 \times 5 = 30.

Answer: The smallest composite number is 3030


Q3: Prove that 143143 is composite.

Solution: Check divisibility.

  1. Start with smaller primes: 143÷2(not divisible, since 143 is odd).143 \div 2 \quad \text{(not divisible, since \(143\) is odd)}.
  2. Check 143÷3143 \div 3: Sum of digits 1+4+3=81 + 4 + 3 = 8 (not divisible by 33).
  3. Check 143÷7=20.428143 \div 7 = 20.428 (not exact).
  4. Check 143÷11=13143 \div 11 = 13 (exact).

Factors: 1,11,13,1431, 11, 13, 143.

Answer: 143143 is composite.


Q4: Express 100100 as the sum of two primes.

Solution: Test pairs of primes:

  1. 1003=97100 – 3 = 97 (9797 is prime).
  2. 10011=89100 – 11 = 89 (8989 is prime).

Answer: 100=3+97100 = 3 + 97  or 100=11+89100 = 11 + 89.


Q5: Find the greatest prime factor of 630630.

Solution: Prime factorize 630630:

  1. 630÷2=315630 \div 2 = 315.
  2. 315÷3=105315 \div 3 = 105.
  3. 105÷3=35105 \div 3 = 35.
  4. 35÷5=735 \div 5 = 7.

Prime factors: 2,3,5,72, 3, 5, 7.
Greatest: 77.

Answer: The greatest prime factor is 77.


Q6: Determine if 101101 is prime.

Solution: Check divisibility by primes 2,3,5,72, 3, 5, 7:

  • 101÷2101 \div 2 (odd, not divisible).
  • 101÷3=33.67101 \div 3 = 33.67 (not exact).
  • 101÷5101 \div 5 (doesn’t end in 00 or 55).
  • 101÷7=14.43101 \div 7 = 14.43 (not exact).

No divisors exist other than 11 and 101101.

Answer: 101101 is prime.


Q7: Find two prime numbers whose product is 7777.

Solution: Factorize 7777:

  • 77÷7=1177 \div 7 = 11.

Factors: 77 and 1111.

Answer: 7×11=777 \times 11 = 77.


Q8: How many prime numbers are between 5050 and 100100?

Solution: Identify primes in the range 5010050-100:

53,59,61,67,71,73,79,83,89,97.53, 59, 61, 67, 71, 73, 79, 83, 89, 97.

Answer: There are 1010 prime numbers between 5050 and 100100.


Q9: Find the LCM of 12,15,12, 15, and 3535 using prime factorization.

Solution:
Prime factorization:

12=22×3,15=3×5,35=5×7.12 = 2^2 \times 3, \quad 15 = 3 \times 5, \quad 35 = 5 \times 7.

LCM: Take the highest power of each prime.

LCM=22×3×5×7=420.LCM = 2^2 \times 3 \times 5 \times 7 = 420.

Answer: LCM=420LCM = 420


Q10: Determine the prime factors of 210210.

Solution: Factorize 210210:

  1. 210÷2=105210 \div 2 = 105.
  2. 105÷3=35105 \div 3 = 35.
  3. 35÷5=735 \div 5 = 7.

Prime factors: 2,3,5,72, 3, 5, 7

Answer: Prime factors are 2,3,5,72, 3, 5, 7.


Q11: Express 8080 as the product of prime numbers.

Solution: Factorize 8080:

  1. 80÷2=4080 \div 2 = 40, 40÷2=2040 \div 2 = 20, 20÷2=1020 \div 2 = 10, 10÷2=510 \div 2 = 5.

Prime factorization:

80=24×5.80 = 2^4 \times 5.

Answer: 80=24×580 = 2^4 \times 5


Q12: Prove that 231231 is composite.

Solution: Check divisibility:

  1. 231÷3=77231 \div 3 = 77 (exact).
  2. Factors: 1,3,7,11,21,77,2311, 3, 7, 11, 21, 77, 231.

Answer: 231231 is composite.


Q13: List all prime numbers less than 3030.

Answer: 2,3,5,7,11,13,17,19,23,292, 3, 5, 7, 11, 13, 17, 19, 23, 29.


Q14: Express 144144as a product of primes.

Solution: Factorize 144144:

144÷2=72,72÷2=36,36÷2=18,18÷2=9,9÷3=3.144 \div 2 = 72, \quad 72 \div 2 = 36, \quad 36 \div 2 = 18, \quad 18 \div 2 = 9, \quad 9 \div 3 = 3.
144=24×32.144 = 2^4 \times 3^2.

Answer: 144=24×32144 = 2^4 \times 3^2.


Q15: What is the sum of all prime numbers less than 2020?

Solution: Primes less than 2020: 2,3,5,7,11,13,17,192, 3, 5, 7, 11, 13, 17, 19.
Sum:

2+3+5+7+11+13+17+19=77.2 + 3 + 5 + 7 + 11 + 13 + 17 + 19 = 77.

Answer: Sum is 7777 .


Q16: Find the prime factorization of 9898.

Solution: Factorize 9898:

98÷2=49,49=7×7.98 \div 2 = 49, \quad 49 = 7 \times 7.

Prime factorization:

98=2×72.98 = 2 \times 7^2.

Answer: 98=2×7298 = 2 \times 7^2.


Q17: Identify if 9191 is prime or composite.

Solution: Check divisibility:

91÷7=13.91 \div 7 = 13.

Factors: 1,7,13,911, 7, 13, 91.

Answer: 9191 is composite.


Q18: Determine if the product of 33 and 77 is prime or composite.

Solution:

3×7=21.3 \times 7 = 21.

Since 2121 has factors 1,3,7,211, 3, 7, 21, it is composite.

Answer: Composite.


Q19: Prove 8585 is composite.

Solution:

85÷5=17.85 \div 5 = 17.

Factors: 1,5,17,851, 5, 17, 85.

Answer: 8585 is composite.


Q20: Find two primes that sum to 2828.

Solution: Test pairs of primes:

  • 285=2328 – 5 = 23 (5,235, 23 are primes).
  • 2811=1728 – 11 = 17 (11,1711, 17 are primes).

Answer: 28=5+2328 = 5 + 23 or 28=11+1728 = 11 + 17.