My attempt of solving problems on Project Euler