Problem

Source: Albanian National Math Olympiad 2012

Tags: modular arithmetic, number theory, primes



Find all primes $p$ such that $p+2$ and $p^2+2p-8$ are also primes.