Add Euler problem 24