Added primorial code and test code from GMP/