Project Euler: Problem 65