Euler Problem No.1 in IronRuby

Please follow and share!
Twitter
Facebook
LinkedIn
RSS

I came across a site that contains mathematical problems that can be solved programmatically.  The site is http://projecteuler.net .  I thought this was a good site to frequent so that I can learn how to apply my new found love for IronRuby.  Running this samples requires that you download and build IronRuby, I also added the location of rbx.exe to my Path environment variable.  To run this file type "rbx Euler1.rb" from a command prompt in the folder that contains your source file. 

After solving the first problem from Project Euler, I am officially 1% genius 🙂 Here is two solutions that I came up with: or download the file here 

image

Please follow and share!
Twitter
Facebook
LinkedIn
RSS