euler/crystal/euler010.cr

13 lines
182 B
Crystal
Raw Normal View History

2018-02-23 04:53:01 +00:00
require "./prime"
2018-02-25 03:32:39 +00:00
module Euler
module Problem010
extend self
def solution
prime = Euler::Prime.new
prime.take_while { |x| x < 2000000 }.sum
end
end
end