Determine all pairs of prime numbers $(p; q)$ such that $p^2 + 5pq + 4q^2$ is the square of an integer.
Source: Netherlands TST for Bxmo 2017 problem 5
Tags: number theory
Determine all pairs of prime numbers $(p; q)$ such that $p^2 + 5pq + 4q^2$ is the square of an integer.