Project Euler Problem 16 in F#