The possible digits are: 5, 6, 7, 8 and 9. Let's mark the case when the locker code begins with a prime number as A and the case when <span>the locker code is an odd number as B. We have 5 different digits in total, 2 of which are prime (5 and 7).
First propability: </span> <span> By knowing that digits don't repeat we can say that code is an odd number in case it ends with 5, 7 or 9 (three of five digits).