Find all positive integers x and y such that x, y, x + y and x − y all are primes.
Ohkay now i have already solved the problem but i am looking for other methods to solve it.
Here is my work out
Since x − y is a prime, x − y > 0 =⇒ x > y. Suppose both x, y ≥ 3, then x + y becomes even and hence not a prime. So one of them must be 2. Hence y = 2 and x ≥ 3. So we have x − 2, x, x + 2 as primes. Consider three cases: Case 1: x = 3k + 1 where k ≥ 1, then x + 2 = 3k + 3 = 3(k + 1) which is certainly not a prime. Case 2: x = 3k + 2 where k ≥ 1, then x − 2 = 3k which is prime only if k = 1. This forces x = 5. A simple checking shows that this is indeed a solution. Case 3: x = 3k where k ≥ 1, then k = 1, which forces x − y = 1, not a prime. Thus x = 5, y = 2 is the only solution.