For Euler problem8