Finished an inelegant, but perfectly effective answer to Euler8.