Factorization of sum and difference of factorized coprimes

30 Views Asked by At

If I have the prime factors of two coprimes $a$ and $b$, is it possible to find the prime factors of $a + b$ and $a - b$ faster than a full factorization?

1

There are 1 best solutions below

0
On

Yes. a+b and a-b are each co-prime to each of a and b. Therefore, you know that none of the prime factors of a or b is a factor of a+b or a-b. Therefore, there is no need to test a+b or a-b for those factors.