Solve Project Euler problems with OCaml