2021 AMC Fall 10A Problem 5
The six-digit number is prime for only one digit What is
Show solution without answering
Key insight
Cross out answers with quick tests: 5 ends in 5, digits 1 and 7 make the digit sum a multiple of 3, and 202103 is a multiple of 11.
Solution
The problem promises that exactly one digit works. So you do not need to prove a number is prime. You only need to cross out the four answers that are not prime.
1. Test for 5. If , the number ends in , so divides it. Cross out (C).
2. Test for 3. A number is a multiple of when its digit sum is. Here the digit sum is .
- : digit sum , a multiple of . Cross out (A).
- : digit sum , a multiple of . Cross out (D).
- : digit sum , and : digit sum . Neither is a multiple of .
3. Test for 11. Two choices are left, and . The rule for : starting from the last digit, add and subtract the digits in turn. If the result is a multiple of (including ), so is the number. For :
So divides (indeed ). Cross out (B).
4. Only is left, and the problem says one digit works, so is the prime.
The answer is .
Why this works
When a problem says "only one of these works," cross out the others instead of proving the winner. Use the cheap tests first: last digit (for and ), digit sum (for ), then the add-subtract rule (for ). Here those three tests remove four of the five choices.
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
A six-digit prime cannot be even and cannot end in , so is one of ; choice (C) is out.
Digit sum: . This is a multiple of when () or (), so and are divisible by . Choices (A) and (D) are out.
Now test with the alternating sum of digits from the right. For : , which is divisible by , so is composite. Choice (B) is out.
The only digit left is , and the problem guarantees exactly one digit works, so is the prime.
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 2: Primes and Composites
- Introduction to Number Theory, Chapter 1: Integers: The Basics (§1.4, §1.5)
- Introduction to Number Theory, Chapter 4: Prime Factorization (§4.2, §4.4)
- Introduction to Number Theory, Chapter 5: Divisor Problems (§5.2, §5.3)
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. Also appeared as 2021 12FA #4.