Project Euler‎ > ‎

Problem 1 in F#

posted Aug 27, 2009, 1:17 AM by Peter Henell
let summering =
{
1..999}
|> Seq.filter(fun x -> ((x % 3 = 0 ) || (x % 5 = 0)))
|> Seq.sumByInt (fun x -> x)
Comments