3 ms·For those that want to test the code (1..100).take(20).select(&:odd?).sumby dorianmariefr 5y agoFor those that want to test the code (1..100).take(20).select(&:odd?).sum