Euler solved problem 58