Problem

Source: Serbia TST 2018 P1

Tags: number theory



Prove that there exists infinetly many natural number $n$ such that at least one of the numbers $2^{2^n}+1$ and $2018^{2^n}+1$ is not a prime.