Various solutions to project euler exercises