Improved euler 25 solution