Problem

Source: Peru EGMO TST 2019 p1

Tags: Diophantine equation, diophantine, primes, number theory



Find all the prime numbers $p, q$ and $r$ such that $p^2 + 1 = 74 (q^2 + r^2)$.