Solution of Project Euler problems