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

10 lines
126 B
Julia
Raw Normal View History

2017-07-07 01:37:39 +02:00
#!/usr/bin/julia
println(
sum(filter(
x -> (x % 3 == 0) || (x % 5 == 0),
1:999
)
)
)