public
Created

  • Download Gist
005.rb
Ruby
1 2 3 4 5
a = 2
[*2..20].each {|e|
a = a.lcm(e)
}
p a

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.