Last active
March 12, 2016 13:44
-
-
Save DavidBrower/9f8e662855b29637e0eb to your computer and use it in GitHub Desktop.
Sum of Multiples
This file contains 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
//Find the sum of all the multiples of 3 or 5 below 1000. | |
[1..999] | |
|> List.filter (fun x -> x % 3 = 0 || x % 5 = 0) | |
|> List.sum | |
//Almost identical to http://theburningmonk.com/2010/09/project-euler-problem-1-solution/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment