Solution for euler 6