Let $p$, $q$, $r$, and $s$ be 4 distinct primes such that $p+q+r+s$ is prime, and the numbers $p^2+qr$ and $p^2+qs$ are both perfect squares. What is the value of $p+q+r+s$?
1. Since \( p+q+r+s \) is prime and \( p, q, r, s \) are distinct primes, one of \( p, q, r, s \) must be equal to \( 2 \). If this were not the case, then \( p+q+r+s \) would be even and greater than \( 2 \), hence not prime. Therefore, we can assume without loss of generality that \( p = 2 \).

2. Given \( p = 2 \), we have the equations:
   \[
   a^2 = p^2 + qr \quad \text{and} \quad b^2 = p^2 + qs
   \]
   Substituting \( p = 2 \), we get:
   \[
   a^2 = 4 + qr \quad \text{and} \quad b^2 = 4 + qs
   \]

3. Since \( q \) is a prime, \( q \) must divide \( a^2 - 4 \). By the properties of primes, \( q \) must divide either \( a+2 \) or \( a-2 \). Similarly, \( q \) must divide either \( b+2 \) or \( b-2 \).

4. Since \( r \neq s \), \( a \neq b \). We also note that \( a^2 - 4 \) and \( b^2 - 4 \) both have exactly two distinct prime factors. Therefore, the divisibility conditions must be equalities. Without loss of generality, let:
   \[
   q = a - 2 \quad \text{and} \quad q = b + 2
   \]
   Then:
   \[
   r = a + 2 = q + 4 \quad \text{and} \quad s = b - 2 = q - 4
   \]

5. Thus, \( q, r, s \) form an arithmetic progression with a common difference of \( 4 \). We need to find primes \( q, r, s \) such that \( q, q+4, q-4 \) are all primes.

6. Checking small primes, we find:
   \[
   q = 7 \implies r = 7 + 4 = 11 \quad \text{and} \quad s = 7 - 4 = 3
   \]
   All of these are primes.

7. Therefore, the primes are \( p = 2 \), \( q = 7 \), \( r = 11 \), and \( s = 3 \). Summing these, we get:
   \[
   p + q + r + s = 2 + 7 + 11 + 3 = 23
   \]

The final answer is \(\boxed{23}\)