Problem

Source: Azerbaijan Balkan TST 2016 No 3

Tags: number theory



Find all $n$ natural numbers such that for each of them there exist $p , q$ primes such that these terms satisfy. $1.$ $p+2=q$ $2.$ $2^n+p$ and $2^n+q$ are primes.