problem 31 solved in 1.34s.\n Special thanks to Alan Schmitt and the 6th tp of ocaml.