euler problem 6 shell solution