Ross M. answered 09/09/24
PhD in Mathematics with Expertise in Discrete Math and 10+ Years Teach
Let's denote n1=21000+277, n2=21000+291,n3=21000+297.
To determine which one is prime, we can consider checking these numbers modulo small primes to eliminate some possibilities and identify patterns. This will allow us to check their behavior without directly factoring large numbers. For simplicity, let's examine the numbers modulo a few small primes like 3, 5, and 7.
Checking modulo 3:
We want to compute 21000mod 3 , as well as the three integers modulo 3.
Since
2≡−1(mod3)2 ,
we have:
21000=(−1)1000 ≡1(mod3)
Now check the three numbers modulo 3: n1
n1=21000+277 = 1+277 ≡ 1+1 = 2(mod3)
n2=21000+291 = 1+291 ≡1+0 = 1(mod3)
n3=21000+297 = 1+297 ≡ 1+0=1(mod3)
Thus, n1= 2(mod3), n2 =1(mod3) and n3 =1(mod3)
Since a prime number cannot be divisible by 3 unless it's 3 itself, n1 is not divisible by 3 and could potentially be prime, but n2 and n3 are divisible by 3, making them composite.
Given that n2 ≡ 0(mod3) n3 ≡ 0(mod3), both n2 and n3 are divisible by 3, so they are not prime.
Thus, the only candidate left is n1=21000+277, which is not divisible by 3, and since we are told that exactly one of the numbers is prime, n1 must be the prime number.
No need to check for other primes 5, 7, etc.