require "rational"a = 1(2..20).each{|x| a = a.lcm(x) }p a
Standard input is empty
232792560
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!