2025 AMC 10A Problems/Problem 12
Problem
Carlos uses a
-digit passcode to unlock his computer. In his passcode, exactly one digit is even, exactly one (possibly different) digit is prime, and no digit is
. How many
-digit passcodes satisfy these conditions?
Solution 1: Casework
The only two digits that are neither prime nor even are
and
We split this problem into cases based on the number of
s. This is because
is both a prime number and an even number.
Case 1: For this case, there are no
s. For this case, there are
choices for where the even digit goes, and
choices for what the even digit is. There are then
choices for where the prime digit goes, and
choices for what the prime digit is. The last two spots have
choices each,
or
. This gives a total of
options for this case.
Case 2: For this case, there is one
. There are
choices for where
goes, and
choices for the other three digits each. This case gives a total of
options!
Hence, the answer is
~Tacos_are_yummy_1
~Tacos_are_yummy_1 (w editing chain, let's keep it going haha)
~iiiiiizh (minor edits)
~drekie (very minor edit--ain't no way someone thought 4x3x3x2x2=432 lmao)
~happyfish0922 (minor formatting edits)
~zoyashaikh (extremely minor edits)
~kfclover (minor LaTeX edits)
~aldzandrtc (removed dummy subjects to be specific)
~gvh300 (minor editing)
~minor
edits by i_am_not_suk_at_math (saharshdevaraju 14:27, 7 November 2025 (EST)saharshdevaraju)
~Ninekayx wsp
~Strickenox (added an exclamation point just to keep the chain going)
~SixthGradeBookWorm927 (Made the first sentence for each case complete)
~ Strickenox (wsp SixthGradeBookworm927 i see we are both editing this page right now)
~Sharp_logic (made first sentence complete)
~Harrg (very minor edits)
~ZDC0530 (minor LaTeX edit)
~HappyLion (extremely minor grammar mistake)
~Elliecorn (very extremely minor LaTeX edit)
~EZ123 (extremely minor formatting edit to make the solution more pleasing to the eye)
~Galactic_Saber (extremely minor formatting edit)
~lucassf12 (removed period at the end to keep the chain going)
~Ryxo (minor grammar improvements for better flow)
~AoPS_enjoyer (removed unnecessary parenthesis)
~piZZaZedpiZZa (removed space before the colon)
Solution 2: Cheese but fast
Let us count the cases where there is a
anywhere in the lock. There are
places to arrange the
s, and the remaining digits can only be
s and
s (since they neither can be even nor prime). Thus, there will be
choices for there to exist one
. We note that answer choice
is
greater than another answer choice (specifically,
) and is the only answer choice to have this property. Assuming that the pitfall of forgetting the case with a
would be a separate answer choice on its own, we can justify that the answer is
~megaboy6679, who forgot the case with the
Video Solution
Chinese Video Solution
https://www.bilibili.com/video/BV1nYkUBVEFt/
~metrixgo
Video Solution (Fast and Easy)
https://youtu.be/TOTJEltmpe0?si=pglACCfjzAHguvlt ~ Pi Academy
Video Solution by SpreadTheMathLove
https://www.youtube.com/watch?v=dAeyV60Hu5c
Video Solution
~MK
Video Solution by Daily Dose of Math
~Thesmartgreekmathdude
See Also
| 2025 AMC 10A (Problems • Answer Key • Resources) | ||
| Preceded by Problem 11 |
Followed by Problem 13 | |
| 1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 • 16 • 17 • 18 • 19 • 20 • 21 • 22 • 23 • 24 • 25 | ||
| All AMC 10 Problems and Solutions | ||
These problems are copyrighted © by the Mathematical Association of America.