Bunuel
We need to generate a random positive number greater than 10.
It should not contain any factor greater than p. Such that 1 < P < random number.
If there exists no factor for the random number generated apart from the number and 1.
It’s obvious, the random number generated is a prime number.
So, prime numbers greater than 10 are : 11,13,17,19,23,29,31,37,43,47 etc.
So if, we divide each number by 18, the remainder we get are as follows:
11 ➗ 18 , we get remainder as
11. 13 ➗ 18 , we get the remainder as
13.
17 ➗ 18, we get the remainder as
17.
19 ➗ 18, we get the remainder as
1.
23 ➗ 18, we get the remainder
5. 29 ➗ 18, we get the remainder
11.
31 ➗ 18, we get the remainder 13.
37 ➗ 18, we get the remainder 1.
43 ➗ 18, we get the remainder
7.
The distinct remainders are : 1,5,7,11,13 and 17.
6 cases.
Alternate approach:
Prime numbers are of the form 6k+1 or 6k-1. What’s the remainder when the number is divided by 18.
If K =3, we get 19 and 17.
The remainders are 1 and 17.
If K= 4, we get 25 and 23.
25 is not a prime. Hence, the remainder is 5.
If k=5, we get 31 and 29.
The remainders we get are : 13 and 11.
If k=6, we get repetitive of remainders.
If k=7, the numbers we get are 43 and 41.
The remainders are 7 and 5.
The distinct remainders are : 1,17,5,13,11,7.
Totally 6.
The question arises where do we stop, as we have an option as 9. Do we need to iterate even more ? Number generated is of the form 18K+N
And the number N should be coprime with 18.
Why? 18K +2 = 2(9k+1) = multiple of 2. So cannot be a prime number.
Coprime with 18 are : 1,5,7,11,13,17.
So these are the 6 remainders.
Option D