Project Euler: Problem 79