euler/crystal/001/euler001.cr

2 lines
62 B
Crystal
Raw Normal View History

2018-02-21 21:00:08 +00:00
puts (1..999).select { |n| (n % 3 == 0) || (n % 5 == 0) }.sum