def gf_zassenhaus(f, p, K):
 factors = []
 for (factor, n) in gf_ddf_zassenhaus(f, p, K):
  factors += gf_edf_zassenhaus(factor, n, p, K)
 return _sort_factors(factors, multiple=False)

def gf_zassenhaus ( f , p , K ) : factors = [ ] for ( factor , n ) in gf_ddf_zassenhaus ( f , p , K ) : factors += gf_edf_zassenhaus ( factor , n , p , K ) return _sort_factors ( factors , multiple = False )
factor a square-free f in gf(p)[x] for medium p .