improved formatting for euler 8