Created
September 2, 2015 20:55
-
-
Save Linell/ad1a30b020de4b5336e2 to your computer and use it in GitHub Desktop.
Project Euler problem on in Elixir.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enum.filter(1..999, fn(x) -> rem(x, 5) == 0 || rem(x, 3) == 0 end) | |
|> Enum.reduce(fn(x, acc) -> acc + x end) | |
# 233168 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment