If you know
then it is easy to factor :
Suppose . Given
, it is very easy to
compute and . We have
? n=nextprime(random(10^10))*nextprime(random(10^10)); ? phin=eulerphi(n); ? f = x^2 - (n+1-phin)*x + n %6 = x^2 - 12422732288*x + 31615577110997599711 ? polroots(f) %7 = [3572144239, 8850588049] ? n %8 = 31615577110997599711 ? 3572144239*8850588049 %9 = 31615577110997599711