deleted primitive roots cpp