Project Euler Problem 97