pub fn test_generator<F: Field>(multiplicative_group_factors: &[(BigUint, u32)])
Given a list of the factors of the multiplicative group of a field, check that the defined generator is actually a generator of that group.