ruby solutions to project euler problems