Problem

Source: 2018 Thailand October Camp 2.1

Tags: number theory, Perfect Square



Find all primes $p$ such that $(p-3)^p+p^2$ is a perfect square.