Skip to content

Instantly share code, notes, and snippets.

@AlexBaranosky
Created September 25, 2010 01:52
Show Gist options
  • Save AlexBaranosky/596362 to your computer and use it in GitHub Desktop.
Save AlexBaranosky/596362 to your computer and use it in GitHub Desktop.
-module(euler).
-export([euler1/0]).
euler1() ->
lists:sum([N|| N <- lists:seq(1, 999), ((N rem 3) == 0) or ((N rem 5) == 0) ]).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment