Project-euler is a project mainly written in RUBY and PHP, it's free.
Sample solutions for Project Euler problems.
A collection of solutions to problems on Project Euler. Most are in Ruby, and some handy methods are in helpers.rb
Solutions may not be optimal, but they seem to work :)