AMC 10 Step by Step

2015 AMC 10B Problem 11

P11-15~3 minPrint

Among the positive integers less than 100100 , each of whose digits is a prime number, one is selected at random. What is the probability that the selected number is prime?

Log in to save your progress.
Show solution without answering

Key insight

Only the digits 2, 3, 5, 7 are allowed, so there are just 4 + 16 = 20 numbers to check. Eight of them are prime.

Solution

  1. Which digits are allowed? The prime digits are 2,3,5,72, 3, 5, 7. (The digit 11 is not prime.)
  2. Count all the numbers. One-digit numbers: 2,3,5,72, 3, 5, 7, which is 44 numbers. Two-digit numbers: 44 choices for the first digit and 44 for the second, which is 4⋅4=164 \cdot 4 = 16 numbers. In total there are 4+16=204 + 16 = 20 numbers.
  3. One-digit primes. All four of 2,3,5,72, 3, 5, 7 are prime.
  4. Two-digit primes. A two-digit number ending in 22 is even, and one ending in 55 is a multiple of 55, so neither can be prime. That leaves the eight numbers ending in 33 or 77:
Number23233333535373732727373757577777
Prime?yesno, 3⋅113 \cdot 11yesyesno, 3⋅93 \cdot 9yesno, 3⋅193 \cdot 19no, 7⋅117 \cdot 11

Four of them are prime: 23,37,53,7323, 37, 53, 73.
5. Probability. There are 4+4=84 + 4 = 8 primes out of 2020 numbers, so the probability is 820=25\dfrac{8}{20} = \dfrac25.

The answer is (B) 25\boxed{\textbf{(B)}\ \frac{2}{5}}.

Why this works

Once you see that only four digits are allowed, the list of candidates is small enough to check by hand. The last digit throws out half the list at once. For the rest, the digit-sum test for 33 catches 3333, 2727 and 5757, and 7777 is a multiple of 77.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

The prime digits are 2,3,5,72, 3, 5, 7. The one-digit candidates are these four numbers, and the two-digit candidates have 44 choices for each digit, giving 4⋅4=164 \cdot 4 = 16 numbers. The pool has 4+16=204 + 16 = 20 numbers.

All four one-digit candidates are prime.

Among the two-digit candidates, any number ending in 22 or 55 is composite, so only those ending in 33 or 77 can be prime: 23,33,53,73,27,37,57,7723, 33, 53, 73, 27, 37, 57, 77. Checking each: 2323 prime, 33=3⋅1133 = 3 \cdot 11, 5353 prime, 7373 prime, 27=3327 = 3^3, 3737 prime, 57=3⋅1957 = 3 \cdot 19, 77=7⋅1177 = 7 \cdot 11. Exactly four are prime.

So 4+4=84 + 4 = 8 of the 2020 numbers are prime, and the probability is 820=25\frac{8}{20} = \frac{2}{5}.

The answer is (B) 25\boxed{\textbf{(B)}\ \frac{2}{5}}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.