[evan] completed Euler Problem 2