Problem

Source: 2019 Grand Duchy of Lithuania, Mathematical Contest p4 (Baltic Way TST)

Tags: number theory, Perfect Square



Determine all pairs of prime numbers $(p, q)$ such that $p^2 + 5pq + 4q^2$ is a square of an integer.