Ruby efficency

Off topicProgramming → Ruby efficency

Is this the most efficient code?

counter = 0
even = []

while counter < 100
    counter += 1
    if counter % 2 == 0
        even.push(counter)
    end
end
puts even

And yes. I like indentation

k. i am begginer atm
pissing my self laughing that gif is on point :D