euler/crystal/euler010.cr

5 lines
90 B
Crystal

require "./prime"
prime = Euler::Prime.new
puts prime.take_while { |x| x < 2000000 }.sum