eladshush
Hi all,
As you saw, I have published a bunch of questions in the past hour. Most of these questions are taken from a collection of hard quantitative questions provided by The Princeton Review (a.k.a - Killer Math).
I have posted any question that I have solved incorrectly, either due to careless error or concept error, in order to share them with everyone here.
Please consider the following problem that I am not sure I understood:
How many 4 digit codes can be made, if each code can only contain prime numbers that are less than 20?
A. 24
B. 102
C. 464
D. 656
E. 5040
Thank you all for the help and detailed explanations (especially you - Bunuel).
It is very helpful.
The question is a little bit ambiguous but I think it means the following:
I guess as it's not mentioned primes can be repeated.
There are:
4 one digit primes (O) less than 20 - 2, 3, 5, 7;
4 two digit primes (T) less than 20 - 11, 13, 17, 19;
Thus 4-digit number could be of the following type:
OOOO, for example: 2|3|5|7 or 2|2|7|7. Each O can take 4 values from {2, 3, 5, 7}, so total ways for this type is \(4^4\);
TT, for example: 11|11 or 19|17. Each T can take 4 values from {11, 13, 17, 19}, so total ways for this type is \(4^2\);
TOO, for example: 11|3|5 or 19|7|2. T can take 4 values from {11, 13, 17, 19} and each O can take 4 values from {2, 3, 5, 7}, so total ways for this type is \(4*4^2=4^3\);
OTO, for example: 2|13|5 or 7|19|2. The same as above: \(4^3\);
OOT, for example: 2|5|19 or 7|2|17. The same as above: \(4^3\);
Total: \(4^4+4^2+3*4^3=464\).
Answer: C.