Euler is a project mainly written in OCaml, it's free.
Study of Project Euler problems in various languages (projecteuler.net).