From 7f93a4f807499441826042f59f9d5dad59854e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Wed, 26 Jan 2022 18:40:44 +0100 Subject: 001: Add python and elixir solutions --- 001.ex | 1 + 001.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 001.ex create mode 100644 001.py 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])) -- cgit v1.2.3