/run ruby

# 100万でテスト

require "prime"

n = 10_0000

c = 0

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

next unless i.prime?

c += 1

end

puts c

Reply to this note

Please Login to reply.

Discussion

9592

これ間違い.10万から変え損ね.