Added a solution to euler 30.