Merged with other F# euler project.