Solutions to project euler problems in ruby