Skip to content

Instantly share code, notes, and snippets.

@Linell
Created September 2, 2015 20:55
Show Gist options
  • Save Linell/ad1a30b020de4b5336e2 to your computer and use it in GitHub Desktop.
Save Linell/ad1a30b020de4b5336e2 to your computer and use it in GitHub Desktop.
Project Euler problem on in Elixir.
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