public void PolyGF2Irreducible()
 {
     foreach (var p in PolyGF2.GetAllIrreducible().Take(1000))
     {
         Trace.WriteLine(p);
     }
 }
        public void PolyGF2SmallIrreduciblesCheck()
        {
            var p1 = PolyGF2.GetAllIrreducible().Take(1000).GetEnumerator();
            var p2 = PolyGF2.SmallIrreducibles().Take(1000).GetEnumerator();

            while (p1.MoveNext() && p2.MoveNext())
            {
                Assert.AreEqual(p1.Current, p2.Current);
            }
        }
        public void PolyGF2SmallIrreducibles()
        {
            var last = 0UL;
            int len  = 0;

            foreach (var p in PolyGF2.GetAllIrreducible().Take(8192))
            {
                var c = p.GetCode();
                var s = ((int)(c - last) / 2 - 1).ToString() + ",";
                if (len + s.Length > 100)
                {
                    Trace.WriteLine(""); len = 0;
                }
                Trace.Write(s);
                len += s.Length;
                last = c;
            }
        }