Project`s Euler tasks using Python