Sha256: 0f3702a68e7bb971cc3f80341c31834edff1d361328d327a6262151c17f1fdd7

Contents?: true

Size: 205 Bytes

Versions: 21

Compression:

Stored size: 205 Bytes

Contents

{
  min = 1
  max = 20

  step = [2, 3, 5, 7, 11, 13, 17].reduce do |acc, el|
    acc * el
  end

  (step..(step * step)).step(step).detect do |i|
    (min..max).all? do |j|
      i % j == 0
    end
  end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
template-ruby-0.5.6 docs/euler/5.template
language-ruby-0.5.6 docs/euler/5.template
code-ruby-0.5.6 docs/euler/5.template
template-ruby-0.5.5 docs/euler/5.template
language-ruby-0.5.5 docs/euler/5.template
code-ruby-0.5.5 docs/euler/5.template
template-ruby-0.5.4 docs/euler/5.template
language-ruby-0.5.4 docs/euler/5.template
code-ruby-0.5.4 docs/euler/5.template
template-ruby-0.5.3 docs/euler/5.template
language-ruby-0.5.3 docs/euler/5.template
code-ruby-0.5.3 docs/euler/5.template
template-ruby-0.5.2 docs/euler/5.template
language-ruby-0.5.2 docs/euler/5.template
code-ruby-0.5.2 docs/euler/5.template
language-ruby-0.5.1 docs/euler/5.template
template-ruby-0.5.1 docs/euler/5.template
code-ruby-0.5.1 docs/euler/5.template
template-ruby-0.5.0 docs/euler/5.template
language-ruby-0.5.0 docs/euler/5.template