2025 AMC 10A Problems/Problem 12
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
The only two digits that aren't prime and aren't even are
and
We split this problem into cases on the number of
s (since 2 is both a prime and even).
Case
No
s. For this case, there are
choices for where the even digit goes, and
choices for what it is. There are then
choices for where the prime digit goes, and
choices for what it is. The last two spots have
choices each
or
This gives a total of
*
*
*
=
options for this case.
Case
One
. For this case, 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
~iiiiiizh (minor edits)