aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--001.ex1
-rw-r--r--001.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/001.ex b/001.ex
new file mode 100644
index 0000000..f3a0142
--- /dev/null
+++ b/001.ex
@@ -0,0 +1 @@
+IO.puts(Enum.sum(for x <- 0..1000, rem(x, 3) == 0 or rem(x, 5) == 0, do: x))
diff --git a/001.py b/001.py
new file mode 100644
index 0000000..4cc6db7
--- /dev/null
+++ b/001.py
@@ -0,0 +1 @@
+print(sum([x for x in range(0, 1000) if x % 3 == 0 or x % 5 == 0]))
remember that computers suck.