Project Euler Problem 76