-
Notifications
You must be signed in to change notification settings - Fork 150
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
Why do the miller_rabin_test() at all? #2
Comments
👍 but you need to check for |
Throwing out |
That's stuff that are there because I was checking this step by step. I haven't done yet an optimization pass phase, so you might be right, but real-life benchmarks will tell! (need to do them!) |
In general yeah. But if P is always 1024 bits and N is always 2048 bits then you don't need to :) |
So I did some benchmark and you're right, the miller rabin test was really slowing down the whole thing. Fixed code and benchmarking code has just been pushed! |
It should be sufficient, and much faster, to just check
if (P > 1 && N % P == 0)
right?The text was updated successfully, but these errors were encountered: