Let N be the product of all integers from 1 through 10 that are not divisible by 5. What is the units digit of N?
Since 1 is not divisible by 2, 3, 4 or 7 while 1000 is divisible by 5, the answer is 228 1 = 227.
The numbers through 1-10 that are not divisible by 10 are 2, 3, 4, 6, 7, 8 and 9(the one doesn't matter.) Multiplying, we get 72576, so the units digit is 6.