def gf_irreducible_p(f, p, K):
 method = query('GF_IRRED_METHOD')
 if (method is not None):
  irred = _irred_methods[method](f, p, K)
 else:
  irred = gf_irred_p_rabin(f, p, K)
 return irred

def gf_irreducible_p ( f , p , K ) : method = query ( 'GF_IRRED_METHOD' ) if ( method is not None ) : irred = _irred_methods [ method ] ( f , p , K ) else : irred = gf_irred_p_rabin ( f , p , K ) return irred
test irreducibility of a polynomial f in gf(p)[x] .