What is the units digit of 123^1234?
123^1234 mod 10^10 ==6,870,286,809 - these are the last 10 digits.