Write all the prime numbers :
(i) less than 25
(ii) between 15 and 35
(iii) between 8 and 76
Confirming your payment
Sign up now and get 250 free tokens.
Playing with Numbers · Question 12 of 63
Write all the prime numbers :
(i) less than 25
(ii) between 15 and 35
(iii) between 8 and 76
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 'less than 25' mean 24 and below. The word 'between' leaves out the two end numbers, so 'between 15 and 35' means 16 to 34, and 'between 8 and 76' means 9 to 75.
Step 2 — Part (i): less than 25.
We check every number from 1 to 24. The number 1 is not prime. The even numbers (other than 2) are not prime, because 2 divides them. Among the odd numbers, 9, 15 and 21 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 and 23.
Step 3 — Part (ii): between 15 and 35.
We check every number from 16 to 34. The even numbers (other than 2) are not prime, because 2 divides them. Among the odd numbers, 21, 25, 27 and 33 are not prime (each has a factor other than 1 and itself, such as 21 = 3 × 7).
The numbers left are the primes: 17, 19, 23, 29 and 31.
Step 4 — Part (iii): between 8 and 76.
We check every number from 9 to 75. 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, 45, 49, 51, 55, 57, 63, 65, 69 and 75 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, 47, 53, 59, 61, 67, 71 and 73.
Watch out: 1 is not a prime number, so the list in part (i) starts at 2.
Therefore, the prime numbers are: (i) 2, 3, 5, 7, 11, 13, 17, 19 and 23; (ii) 17, 19, 23, 29 and 31; (iii) 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71 and 73.