how many 4 digit numbers are there , if it is known that the first digit is even , the second is odd , the third is prime , the fourth ( units digit ) is divisible by 3 , and the digit 2 can be used only once ?
"4 options for the first digit : 2 , 4 , 6 , 8 ; 5 options for the second digit : 1 , 3 , 5 , 7 , 9 ; 4 options for the third digit : 2 , 3 , 5 , 7 ; 4 options for the fourth digit : 0 , 3 , 6 , 9 . four digit # possible without the restriction ( about the digit 2 ) : 4 * 5 * 4 * 4 = 320 numbers with two 2 - s , 2 x 2 x 1 * 5 * 1 * 4 = 20 . thus there are 320 - 20 = 300 such numbers . answer : d ."
subtract(multiply(multiply(add(4, const_1), add(4, const_1)), multiply(4, 4)), multiply(multiply(add(4, const_1), add(4, const_1)), 4))