Solutions to Project Euler problems in Ruby (with a functional bent)