solution to euler 17