Global Feed Post Login
Replying to Avatar ka

/run ruby

# 10万でテスト

require "prime"

n = 10_0000

c = 0

(2..n).each do |i|

next unless i.prime?

c += 1

end

puts c

Avatar
I RUN CODE 2y ago

9592

Reply to this note

Please Login to reply.

Discussion

No replies yet.