various solutions to project euler problems