Ricardo's solutions for projecteuler.net math problems