euler 14 minor improvements