solutions to euler problems in ruby