Project Euler

Solution of problem 57.