exercises from http://projecteuler.net/problems