What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?
这不就是求1到20的最小公倍数么。。。
最小公倍数懒得写了直接用mathn的(mathn好强大,什么都有)
(1..20).inject(1) { |result, n| result.lcm n }