-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Factoring stalls on certain inputs #187
Comments
Apologies if all of this is obvious to you or already known/considered. I got here specifically because I really liked this project and was playing with larger It looks like I only see 2 things can be done:
For the 1st approach there seems to be some very interesting public materials regarding mersenne numbers factorizations such as Factorization tables from Cunningham book. I got a bit confused at first with the book only containing So if just prime factors from More about the notations they are using and such here. There are some things that are not very convenient (e.g. P40 meaning 40-digit prime number without specifying it, and C200 for not-factored number). The primes hidden under |
Specifically the link for the notations explanations: https://homes.cerias.purdue.edu/~ssw/cun/notat.txt |
@pivis thanks for looking into this and responding. I've been hoping someone would help out here -- the prime factorization has always been a weakness in this library. Prime factorization algorithms were new to me when I started this library, so I'm open to review / suggestions / improvements to the factorization algorithms used, and their deployment order in
Taking too long / forever to factor My thoughts on your ideas:
I think this is a good idea. Finite fields with order Potentially in the future, we can add more
I tried implementing the Quadratic Sieve algorithm twice before, but for various reasons never got it fully working / merged. If you're aware of more powerful algorithms and are interested in contributing, I'd love the help. I also recently noticed that the perfect power detection (Step 2 in the |
@pivis the parsing of those tables was more annoying than anticipated! But I added a database of all the prime factorizations in #452. This will really speed things up! I'm also patching Thanks for commenting here, the suggestions, and feedback. I'll release 0.3.2 with the improvement today. |
I'm closing this. This will now be tracked in the consolidated #456. |
As discovered in #185, factoring
2^256 - 1
stalls out which prevents testing if degree-256 polynomials overGF(2)
are primitive. This would likely (?) be fixed once the quadratic sieve (#146) is added.The text was updated successfully, but these errors were encountered: