A passcode is either 4, 5, 6 digits and has primes from {$2, 3, 5, 7$}. How many passcodes are there such that they are from the primes above and have at least one 2?
Confusion: When I have something like how many possible codes that are 4 digits long and are from {0->10}
Is something like $2222$ counted 4 times?