Anti-primes: Difference between revisions
Content deleted Content added
→{{header|Ruby}}: comment |
|||
Line 1,080: | Line 1,080: | ||
max = 0 |
max = 0 |
||
y << 1 # yield 1 |
y << 1 # yield 1 |
||
2.step(nil,2) do |candidate| # nil |
2.step(nil,2) do |candidate| # nil is taken as Infinity |
||
num = num_divisors(candidate) |
num = num_divisors(candidate) |
||
if num > max |
if num > max |