-
Notifications
You must be signed in to change notification settings - Fork 6
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
Alternative Polynomial Testing (performance improvement) #3
Comments
example code is java .. and needs to be converted to C++ .. |
I think the core idea is to use this precomputed lookup table** of prime fators for a insanely massive jump in processing speed for bits 1 to 1200 instead of brute forcing them with PrimeFactorizer. ** https://oeis.org/A001265/a001265.txt which in the java program is loaded as "mersenne_numbers_factors.txt" |
Hi martin. It's been a while since I looked at this, so I'm mainly going to be drawing from an email exchange I had with hayguen prior to opening this issue. Hayguen's implementation uses matrix exponentation to detect cycles of given lengths, and has a runtime complexity of O(N^3 * log(N)) (ignoring the aspect of how many factors of 2^n - 1 to check again). |
https://pastebin.com/uemgwKhN
The text was updated successfully, but these errors were encountered: