project-euler/001.jl

4 lines
64 B
Julia
Raw Normal View History

2020-12-08 02:32:54 +00:00
f(c) = c % 3 == 0 || c % 5 == 0
println(sum(filter(f, 0:999)))