Problem

Source: Philippine MO 2023/2

Tags: number theory, PMO



Find all primes $p$ such that $\dfrac{2^{p+1}-4}{p}$ is a perfect square.