Problem

Source: Kosovo Mathematical Olympiad 2022, Grade 9, Problem 4

Tags: number theory, prime numbers



Find all prime numbers $p$ and $q$ such that $pq-p-q+3$ is a perfect square.