a. The answer: permutations of (2,3,11).
Let p+q+r=x2 and pq+qr+rp+3=y2 where x, y are integers. Let us show that one of the primes p, q, r is 2. If all primes p, q, r are odd all possibilities up to permutations are: (p,q,r)=(1,1,1), (1,1,3), (1,3,3), (3,3,3) (mod 4). We get a contradiction in the cases (1,1,1), (1,3,3) since x2=p+q+r≡3(mod4) and in the cases (1,1,3), (3,3,3) since y2−3=pq+qr+rp≡3(mod4).
Therefore, at least one of p, q, r is equal to 2. W.l.o.g. p=2 and q≤r. Then q+r=x2−2, qr=y2−2x2+1.
Now if 3∣y, then (q+2)(r+2)=y2+1≡1(mod3). Thus, either q≡r≡2(mod3) or q≡r≡0(mod3). But for q≡r≡0(mod3) we get a contradiction: x2−2≡0(mod3). For q≡r≡2(mod3) we get x2−2≡1(mod3) and 3∣x, but by assumption 3∤x. Thus, 3∣y is not possible. Now since 3∤x we get x2≡y2≡1(mod3) and consequently qr=y2−2x2+1≡0(mod3). Thus, q=3. Now r=x2−5 and 3r=y2−2x2+1. Therefore 5r=y2−9=(y−3)(y+3). For r=2,3,5 x is not an integer number. Therefore, r>5. Since y−3=1 yields no solution y−3=5, r=y+3
and r=11. For x=4, y=8 we get (p,q,r)=(2,3,11).
b. (p,q,r)=(2,11,23) satisfies the conditions for (x,y)=(6,18).