My try at the Project Euler problems