My take at solving some problems from http://projecteuler.net/