Add problem 2 for project Euler