NIMCET, GATE, CUET & CBSE test series are live — start practicing free
syllabuzAI

Probability of Prime Numbers on Dice | Class 10 Maths

Find the probability of getting a prime, composite or neither number on a die, and the probability that the product or sum of two dice is prime, with solved Class 10 Maths problems.

6 min read

S2

scholar 247

Updated 24 October 2026

On this page

Quick answer: When a fair die is thrown once, the prime numbers are 2,3,52, 3, 5, so P(prime)=36=12P(\text{prime}) = \frac{3}{6} = \frac{1}{2}. The composite numbers are 4,64, 6, so P(composite)=13P(\text{composite}) = \frac{1}{3}. The number 11 is neither prime nor composite, so P(neither)=16P(\text{neither}) = \frac{1}{6}. With two dice, P(product is prime)=636=16P(\text{product is prime}) = \frac{6}{36} = \frac{1}{6} and P(sum is prime)=1536=512P(\text{sum is prime}) = \frac{15}{36} = \frac{5}{12}.

Throwing a fair six-sided die is one of the simplest probability experiments: the faces 1,2,3,4,5,61, 2, 3, 4, 5, 6 are equally likely, so each has probability 16\frac{1}{6}. Board questions often make it trickier by asking about types of numbers:

  • Find the probability of getting a prime number.
  • Find the probability of getting a composite number.
  • Find the probability of getting a number that is neither prime nor composite.
  • Two dice are thrown. Find the probability that the product of the numbers is a prime number.

The most common mistake is how students treat the number 1.

In CBSE Class 10 Mathematics, Chapter 14 (Probability), die questions based on prime and composite numbers are frequently asked in board exams.


What You Will Learn

  • The sample space for one die, {1,2,3,4,5,6}\{1, 2, 3, 4, 5, 6\}, with 66 outcomes
  • Why 11 is neither prime nor composite
  • Probabilities for one die: prime (12\frac{1}{2}), composite (13\frac{1}{3}), neither (16\frac{1}{6}) and odd prime (13\frac{1}{3})
  • The sample space for two dice, with 3636 outcomes
  • The probability that the product of two dice is prime
  • The probability that the sum of two dice is prime

1. Classifying the Numbers on a Die

When a fair die is thrown once, the possible outcomes are 1,2,3,4,5,61, 2, 3, 4, 5, 6, so the total number of outcomes is 66.

NumberTypeReason
11Neither prime nor compositeHas only one factor (11)
22Prime (the only even prime)Factors: 1,21, 2
33PrimeFactors: 1,31, 3
44CompositeFactors: 1,2,41, 2, 4
55PrimeFactors: 1,51, 5
66CompositeFactors: 1,2,3,61, 2, 3, 6

The number 1 trap: A prime number has exactly two factors, 11 and itself. A composite number has more than two factors. The number 11 has only one factor, so it is neither prime nor composite. Never include 11 when counting primes or composites.


2. Solved Problem: One Die

Question

A die is thrown once. Find the probability of getting:

(i) a prime number

(ii) a composite number

(iii) a number that is neither prime nor composite

(iv) an odd prime number

(v) a number lying between 22 and 66

Solution

Total number of outcomes =6= 6.

(i) Prime number. Favourable outcomes: 2,3,52, 3, 5, which is 33 outcomes.

P(prime)=36=12P(\text{prime}) = \frac{3}{6} = \frac{1}{2}

(ii) Composite number. Favourable outcomes: 4,64, 6, which is 22 outcomes.

P(composite)=26=13P(\text{composite}) = \frac{2}{6} = \frac{1}{3}

(iii) Neither prime nor composite. Favourable outcome: 11 only.

P(neither prime nor composite)=16P(\text{neither prime nor composite}) = \frac{1}{6}

(iv) Odd prime number. The primes are 2,3,52, 3, 5. Leaving out 22 (it is even), the odd primes are 3,53, 5, which is 22 outcomes.

P(odd prime)=26=13P(\text{odd prime}) = \frac{2}{6} = \frac{1}{3}

(v) Number between 2 and 6. "Between" does not include 22 and 66, so the favourable outcomes are 3,4,53, 4, 5, which is 33 outcomes.

P(between 2 and 6)=36=12P(\text{between } 2 \text{ and } 6) = \frac{3}{6} = \frac{1}{2}

Check: P(prime)+P(composite)+P(neither)=36+26+16=1P(\text{prime}) + P(\text{composite}) + P(\text{neither}) = \frac{3}{6} + \frac{2}{6} + \frac{1}{6} = 1. ✓


3. Solved Problem: Two Dice

Question

Two dice are thrown at the same time. Find the probability that:

(i) the product of the numbers on the two dice is a prime number

(ii) the sum of the numbers on the two dice is a prime number

Solution

Each die has 66 outcomes, so the total number of outcomes is 6×6=366 \times 6 = 36.

Part (i): Product Is a Prime Number

For a product of two numbers from 11 to 66 to be prime, one number must be 11 and the other must be prime (22, 33 or 55). If neither number is 11, the product has extra factors and is composite (for example, 2×2=42 \times 2 = 4 and 2×3=62 \times 3 = 6).

Favourable outcomes:

  • First die shows 11: (1,2),(1,3),(1,5)(1, 2), (1, 3), (1, 5)
  • Second die shows 11: (2,1),(3,1),(5,1)(2, 1), (3, 1), (5, 1)

That is 66 favourable outcomes.

P(product is prime)=636=16P(\text{product is prime}) = \frac{6}{36} = \frac{1}{6}

Answer (i): 16\frac{1}{6}

Part (ii): Sum Is a Prime Number

The sum can be any number from 22 to 1212. The prime sums are 2,3,5,72, 3, 5, 7 and 1111.

Prime sumOutcomesCount
22(1,1)(1, 1)11
33(1,2),(2,1)(1, 2), (2, 1)22
55(1,4),(2,3),(3,2),(4,1)(1, 4), (2, 3), (3, 2), (4, 1)44
77(1,6),(2,5),(3,4),(4,3),(5,2),(6,1)(1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1)66
1111(5,6),(6,5)(5, 6), (6, 5)22
Total1515

P(sum is prime)=1536=512P(\text{sum is prime}) = \frac{15}{36} = \frac{5}{12}

Answer (ii): 512\frac{5}{12}


4. Summary Table

EventFavourable outcomesCountProbability
Prime (one die)2,3,52, 3, 53312\frac{1}{2}
Composite (one die)4,64, 62213\frac{1}{3}
Neither prime nor composite111116\frac{1}{6}
Odd prime (one die)3,53, 52213\frac{1}{3}
Product is prime (two dice)(1,2),(1,3),(1,5),(2,1),(3,1),(5,1)(1,2), (1,3), (1,5), (2,1), (3,1), (5,1)6616\frac{1}{6}
Sum is prime (two dice)See the table above1515512\frac{5}{12}

5. Exam Tips and Common Mistakes

Exam Tip: Always list the favourable outcomes before writing the probability. It makes your working clear and earns step marks.

Common Mistake: Counting 11 as a prime number. Writing {1,2,3,5}\{1, 2, 3, 5\} and getting 46\frac{4}{6} is wrong. The correct answer is 36=12\frac{3}{6} = \frac{1}{2}.

Common Mistake: Forgetting that 22 is even. For an odd prime, leave out 22, so only 33 and 55 count.

Common Mistake: With two dice, (1,2)(1, 2) and (2,1)(2, 1) are different outcomes. Count both.


Frequently Asked Questions

What is the probability of getting a prime number on a die?

The primes on a die are 22, 33 and 55, so the probability is 36=12\frac{3}{6} = \frac{1}{2}.

Is 1 a prime number?

No. A prime number has exactly two factors. The number 11 has only one factor, so it is neither prime nor composite.

What is the probability of getting a composite number on a die?

The composite numbers on a die are 44 and 66, so the probability is 26=13\frac{2}{6} = \frac{1}{3}.

What is the probability that the product of two dice is prime?

There are 66 favourable outcomes out of 3636, so the probability is 636=16\frac{6}{36} = \frac{1}{6}.

What is the probability that the sum of two dice is prime?

There are 1515 favourable outcomes out of 3636, so the probability is 1536=512\frac{15}{36} = \frac{5}{12}.

Concept Check

MEDIUM

If sinx=siny and cosx=cosy, then x-y =

Suggested for you