Anonymous user
Humble numbers: Difference between revisions
→Direct Generation: Orders of magnitude faster
Line 426:
i, j, k, l = 0, 0, 0, 0
(1..).each do |n|
x = {x2, x3, x5, x7}.min # {} tuple|stack faster [] array|heap
break if x.to_s.size > digits
h << x
|