Project Euler - practice with OCaml