Added a solution to euler 37.