$A-2B$ and $A+2B$ have the same parity as $A$ and differ by $4B\ge8$, so they cannot both be $2$; hence both are odd, and $A$ is odd.
The sum is $A+B+(A-2B)+(A+2B)=3A+B$.
If $B=3$: then $A-6$ is an odd prime, so $A\ge11$, and the sum is at least $3\cdot11+3=36$ (attained by $5,11,17$).
If $B\ne3$, then $3\nmid 2B$, so $A-2B$, $A$, $A+2B$ have three different remainders mod $3$ and one of them is $3$. Since $A>2B\ge4$, it must be $A-2B=3$, so $A=2B+3$ and the sum is $3(2B+3)+B=7B+9$.
The smallest choice $B=2$ gives $A=7$ and the primes $2,3,7,11$, with sum $23<36$. So the smallest sum is $\boxed{23}$.