Network Security

Answer & solution
Official answer: 97
1. In the standard RSA construction n=pq for distinct primes p,q, and φ(n)=(p−1)(q−1). Expanding gives φ(n)=pq−p−q+1=n−(p+q)+1.
2. Rearrange to recover the prime sum: p+q=n+1−φ(n)=3007+1−2880=128. Their product is already known: pq=3007.
3. Numbers with this sum and product are roots of t²−128t+3007=0. Its discriminant is 128²−4×3007=16384−12028=4356=66².
4. The roots are (128+66)/2=97 and (128−66)/2=31. Both are prime, and their product 97×31=3007 verifies the factorization.
5. Also (97−1)(31−1)=96×30=2880, verifying the given totient. Only 97 is greater than 50, so the required answer is 97.
6. The useful method is recovering p+q from the totient; trial-dividing n is unnecessary. The formula used here relies on the stated RSA two-distinct-prime setting.