(n)
Generate coefficients for `primitive_element()`.
Generate coefficients for `primitive_element()`.
Generate coefficients for primitive_element () .
def _coeffs_generator(n):
    """Generate coefficients for `primitive_element()`. """
    for coeffs in variations([1, -1], n, repetition=True):
        yield list(coeffs)
def _coeffs_generator ( n ) : for coeffs in variations ( [ 1 , - 1 ] , n , repetition = True ) : yield list ( coeffs )