golfed julia version of problem 1
This commit is contained in:
parent
d8d17c0dbd
commit
65b6786569
1 changed files with 9 additions and 0 deletions
9
1/euler001.jl
Executable file
9
1/euler001.jl
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/julia
|
||||||
|
|
||||||
|
println(
|
||||||
|
sum(filter(
|
||||||
|
x -> (x % 3 == 0) || (x % 5 == 0),
|
||||||
|
1:999
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
Reference in a new issue