Project Euler Problem 8 in F#