Skip to content

Instantly share code, notes, and snippets.

@davidgrenier
Created August 19, 2011 14:03
Show Gist options
  • Save davidgrenier/1156860 to your computer and use it in GitHub Desktop.
Save davidgrenier/1156860 to your computer and use it in GitHub Desktop.
Project Euler 1
let n = 1000;;
[1..n-1]
|> Seq.filter (fun v -> v % 3 = 0 || v % 5 = 0)
|> Seq.sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment