Comment

Comment by pooriar

Same as this?

  (1..20).each do |i|
    puts i if i.odd? || i.prime?
  end
edit - upon testing, I just realized the parent's code prints 10 & 16, my code does not, so not the same.
parent pooriar 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton