Project Euler problem: Project euler 118