From 65b6786569f34b49ae99aca573a3e75b8a0ce4d9 Mon Sep 17 00:00:00 2001 From: ikselven Date: Fri, 7 Jul 2017 01:37:39 +0200 Subject: [PATCH] golfed julia version of problem 1 --- 1/euler001.jl | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 1/euler001.jl diff --git a/1/euler001.jl b/1/euler001.jl new file mode 100755 index 0000000..ac6230e --- /dev/null +++ b/1/euler001.jl @@ -0,0 +1,9 @@ +#!/usr/bin/julia + +println( + sum(filter( + x -> (x % 3 == 0) || (x % 5 == 0), + 1:999 + ) + ) +)