Move two solutions from project-euler over. (it looks ugly though)