Find all prime numbers and , such that is also prime.
Slovenia — National Math Olympiad
Solution
If the pair satisfies the conditions of the problem, then so does the pair . It is therefore sufficient to only consider the case where . Obviously, is not a solution. If and are both odd primes, then is an even integer greater than , so it is not prime. Hence, .
Let us figure out when the number is prime. If , then is prime. Else, divides or , so divides which is then not prime.
We conclude that is prime only if and or and .
Want a route through all this instead of an archive? The track
puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.