Three distinct prime numbers , , and are such that is also a prime number.
Find the maximum possible value of .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
I first noticed that 1 1 7 is divisible by 3 because of the digit sum, so I decided to consider the congruence mod 3 . We have that p 4 + q 4 + r 4 + 1 1 7 ≡ p 2 + q 2 + r 2 m o d 3 . Remember that all primes distinct from 3 are either of the form 3 k + 1 or 3 k − 1 which implies that if none of the primes are 3 then this congruence will evaluate to 1 + 1 + 1 ≡ 0 m o d 3 . This means that p 4 + q 4 + r 4 + 1 1 7 won't be a prime number, as it is divisible by 3 (and trivially, it must be much bigger than 3). This implies that one of the primes must be 3 . Notice that in the expression we actually have perfect symmetry so without loss of generality let's assume that p = 3 . We now have a different problem:
Find primes q , r such that q 4 + r 4 + 1 9 8 is prime. We now notice that 1 9 8 is even so let's consider the congruence mod 2 . q 4 + r 4 + 1 9 8 ≡ q 4 + r 4 m o d 2 . If neither of the primes are equal to 2 , then q 4 + r 4 ≡ 1 + 1 ≡ 0 m o d 2 . This means that one of the primes must be 2 , so let q = 2 .
Finally, we have to find a prime number r such that r 4 + 2 1 4 is prime. Now remember that if r = 5 we have r 4 ≡ 1 m o d 5 which would imply r 4 + 2 1 4 ≡ 1 + 2 1 4 ≡ 2 1 5 ≡ 0 m o d 5 so it wouldn't be prime. Therefore, necessarily r = 5 .
It is hard to check but 2 4 + 3 4 + 5 4 + 1 1 7 = 8 3 9 is indeed a prime number. Finally, we want to maximize the linear expression. Let's simply assign the biggest primes to the biggest coefficients and compute 1 5 × 5 + 1 3 × 3 + 1 1 × 2 = 1 3 6 .