Project Euler Problem 5 in F#