Replaced lambda with a function in Euler 1 in F#.