# Finding primitive polynomials

posted 6 years ago

This code should find primitive polynomials[cannot be factored in a field where their coefficients are 0 and 1]. The problem is the first and the last degree are shown but the middle coefficients are coming to 0. I am not able figure out the problem properly. The same logic worked in C using unsigned longs.

Campbell Ritchie

Sheriff

Posts: 49364

62

posted 6 years ago

Please provide more details. What is the algorithm you are using? What sort of errors are you suffering?