Project Euler Problem 10 in F#