Problem

Source: Turkey JBMO Team Selection Test 2013, P2

Tags: modular arithmetic, number theory, prime numbers, number theory proposed



a) Find all prime numbers $p, q, r$ satisfying $3 \nmid p+q+r$ and $p+q+r$ and $pq+qr+rp+3$ are both perfect squares. b) Do there exist prime numbers $p, q, r$ such that $3 \mid p+q+r$ and $p+q+r$ and $pq+qr+rp+3$ are both perfect squares?