aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-01-26 18:40:44 +0100
committerRomain Gonçalves <me@rgoncalves.se>2022-01-26 18:45:02 +0100
commit7f93a4f807499441826042f59f9d5dad59854e69 (patch)
tree38496b61bd70ffe37d537a2c95fd9041846f4479
parent36e4a95364966e3936bee379589629aaccf569ad (diff)
downloadprojecteuler-7f93a4f807499441826042f59f9d5dad59854e69.tar.gz
001: Add python and elixir solutions
-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.