Write the prime numbers from :
(i) 5 to 45
(ii) 2 to 32
(iii) 8 to 48
Confirming your payment
Sign up now and get 250 free tokens.
Playing with Numbers · Question 13 of 63
Write the prime numbers from :
(i) 5 to 45
(ii) 2 to 32
(iii) 8 to 48
Solution:
Concept: A prime number has exactly two factors: 1 and the number itself. The number 1 is not prime (it has only one factor), and 2 is the only even prime.
Step 1 — Read the range.
The words 'from a to b' include both end numbers, so we check the end numbers too (5 is prime, 45 is not).
Step 2 — Part (i): from 5 to 45.
We check every number from 5 to 45. The even numbers (other than 2) are not prime, because 2 divides them. Among the odd numbers, 9, 15, 21, 25, 27, 33, 35, 39 and 45 are not prime (each has a factor other than 1 and itself, such as 9 = 3 × 3).
The numbers left are the primes: 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41 and 43.
Step 3 — Part (ii): from 2 to 32.
We check every number from 2 to 32. The even numbers (other than 2) are not prime, because 2 divides them. Among the odd numbers, 9, 15, 21, 25 and 27 are not prime (each has a factor other than 1 and itself, such as 9 = 3 × 3).
The numbers left are the primes: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29 and 31.
Step 4 — Part (iii): from 8 to 48.
We check every number from 8 to 48. The even numbers (other than 2) are not prime, because 2 divides them. Among the odd numbers, 9, 15, 21, 25, 27, 33, 35, 39 and 45 are not prime (each has a factor other than 1 and itself, such as 9 = 3 × 3).
The numbers left are the primes: 11, 13, 17, 19, 23, 29, 31, 37, 41, 43 and 47.
Watch out: 2 is prime (its only factors are 1 and 2), so it belongs in the list of part (ii).
Therefore, the prime numbers are: (i) 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41 and 43; (ii) 2, 3, 5, 7, 11, 13, 17, 19, 23, 29 and 31; (iii) 11, 13, 17, 19, 23, 29, 31, 37, 41, 43 and 47.