solution to euler 63.