-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add N-1/N+1 primality testing and P-1/P+1 integer factoring to the integer factorization calculator #27
Comments
Also, I found that the integer factorization calculator only detects the algebraic factorization of difference-of-two-squares (try 10^300-4) and x^4+4*y^4 (try 10^300+4), but does not detects the algebraic factorization of sum/difference-of-two-cubes or higher powers (sum/difference-of-two-5th-powers, sum/difference-of-two-7th-powers, sum/difference-of-two-11th-powers, etc.), e.g. you can try 10^300+8, 10^300-8, 10^300+32, 10^300-32, it does not return their algebraic factors. |
With respect to your last post, I've just implemented it for exponents up to 18. Please refresh the web page and try it. |
Thanks, I have a page for the "primitive" factorization of x^n+-k*y^n for n up to 36, e.g.
|
I've just uploaded a new version that includes the other algebraic factorizations for exponents up to 18. Please refresh the page and try again. |
I try 8×18299+12 (the N+1 of the 547th minimal prime in base b = 18, 80298B = 8×18299+11) (which has sum-of-two-cubes factorization and can be factored to 12 × (6×1899+1) × (2×18199−6×1899+1)) and 9×21297+243 (the N−1 of the 13316th minimal prime in base b = 21, 90295BD = 9×21297+244) (which has sum-of-two-cubes factorization and can be factored to 9 × (2199+3) × (21198−3×2199+9)), they have "hidden" algebraic factors, but the calculator does not detect them (the interest of these two numbers are from my minimal prime project https://github.com/xayahrainie4793/minimal-elements-of-the-prime-numbers), the "hidden" algebraic factors is like (25*10^298+8)/3 (see https://stdkmd.net/nrr/8/83336.htm#N298), which has sum-of-two-5th-powers factorization, but when I try (25*10^298+8)/3, the calculator does not detect its algebraic factors. |
That is a very specific factorization. I do not see how the calculator can detect that the number has the form In general, I think it is difficult to write the number in the form |
Currently, for the integer factorization calculator, "Prime" (primality testing) only uses the Baillie-PSW probable primality testing (a probable primality testing, i.e. they might be pseudoprimes) and the ECPP primality testing, and "Factor" (integer factoring) only uses the trial division and the algebraic factorization (e.g. factor the number 25*36^166-1 to (5*6^166-1) * (5*6^166+1), and continue to factor the 118-digit composite cofactor (5*6^166-1)/1052921468429 and the 130-digit composite cofactor 5*6^166+1) and the ECM integer factoring, I think that "Prime" (primality testing) can also use the N-1/N+1 primality testing if N-1 or/and N+1 can be >= 1/3 factored (where N is the given number), and the "Factor" (integer factoring) can also use the P-1/P+1 integer factoring if P-1 or/and P+1 is smooth (where P is the prime factor of the given number).
The text was updated successfully, but these errors were encountered: