# Find all primes \$p\$,\$q\$ such that \$p<q<2020\$ and \$frac{p^2+q^2+1}{pq+2}\$ is an integer.

Find all primes $$p$$,$$q$$ such that $$p and $$frac{p^2+q^2+1}{pq+2}$$
is an integer.
Any idea would be appreciated.