My code of the problem of Project Euler