Solves problems from the euler website