Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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
Sheriff
Posts: 48404
56
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic