This one is simple.
let problem6a = let range = {1..100} let sumOfSquares = range |> Seq.sumBy (fun x -> x * x) let sumSquared = pown (range |> Seq.sum) 2 sumSquared - sumOfSquares
Learning F# through Project Euler
This one is simple.
let problem6a = let range = {1..100} let sumOfSquares = range |> Seq.sumBy (fun x -> x * x) let sumSquared = pown (range |> Seq.sum) 2 sumSquared - sumOfSquares
Perfect.
ReplyDeleteThis comment has been removed by the author.
ReplyDelete