Project Euler #30: Digit Nth powers