Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Finding primitive polynomials

 
Nitish Bangera
Ranch Hand
Posts: 537
Eclipse IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Posts: 52663
121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please provide more details. What is the algorithm you are using? What sort of errors are you suffering?
 
Willie Smits can speak 40 languages. This tiny ad can speak only one:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!