public static List <Polinom> generateIrreduciblePolinoms(int power, int p) { List <Polinom> tmpList = Polinom.getIrreducible(power, p); List <Polinom> result = new List <Polinom>(); // Use only Given exponent polinoms foreach (Polinom pol in tmpList) { if ((int)Polinom.Sorter(pol).List[0].Exponent == power) { result.Add(pol); } } return(result); }