euler/crystal/001/euler001.cr

2 lines
62 B
Crystal

puts (1..999).select { |n| (n % 3 == 0) || (n % 5 == 0) }.sum