diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2022-01-26 18:40:44 +0100 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2022-01-26 18:45:02 +0100 |
commit | 7f93a4f807499441826042f59f9d5dad59854e69 (patch) | |
tree | 38496b61bd70ffe37d537a2c95fd9041846f4479 | |
parent | 36e4a95364966e3936bee379589629aaccf569ad (diff) | |
download | projecteuler-7f93a4f807499441826042f59f9d5dad59854e69.tar.gz |
001: Add python and elixir solutions
-rw-r--r-- | 001.ex | 1 | ||||
-rw-r--r-- | 001.py | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -0,0 +1 @@ +IO.puts(Enum.sum(for x <- 0..1000, rem(x, 3) == 0 or rem(x, 5) == 0, do: x)) @@ -0,0 +1 @@ +print(sum([x for x in range(0, 1000) if x % 3 == 0 or x % 5 == 0])) |