0

Lets $n=pq$ with $p$ and $q$ primes

If we know the result of $p+q$, can we factorize $n$ in polynomial time ?

Best regards.

BenLaz
  • 807

1 Answers1

3

Suppose $n=pq$ and $p+q=k$, then $p$ and $q$ are the roots of the polynomial $x^2-(p+q)x+pq$ and so they are equal to $\frac{p+q\pm \sqrt{p+q)^2-4pq}}{2}$

Asinomás
  • 105,651