My personal solution on certain problems from http://projecteuler.net/