Using the classical definition of probability, the sample space of throwing a die has 6 outcomes and the prime numbers are 2, 3 and 5. The probability of getting a prime number is 3 divided by 6, which equals 1/2. Comparing this to 1/m gives m equals 2.