5. A password of a computer used five digits where they are from 0 and 9. What is the probability that the password solely consists of prime numbers and zero?
A 1/32
B 1/16
C 1/8
D 2/5
E ½
The digits: 0,2,3,5,7 fulfill the requirements of the password. The digits 1,4,6,8,9 do not.
Therefore, for the first digit of the password there is a 5/10 = 1/2 chance that it will fit the requirements.
Since repetition is allowed, the same is true for the remaining four digits of the password.
Hence:
(1/2)^5=1/32
The answer is A.