Solved euler prob 2