This repository has been archived on 2024-01-26. You can view files and clone it, but cannot push or open issues or pull requests.
project-euler/1/euler001.jl
2017-07-07 01:37:39 +02:00

9 lines
126 B
Julia
Executable file

#!/usr/bin/julia
println(
sum(filter(
x -> (x % 3 == 0) || (x % 5 == 0),
1:999
)
)
)