Toy RSA implementation in F#