When $p$ is not $11$ and $p$ is an odd prime, compute the Legendre symbol $\left(\dfrac{-11}{p}\right)$.
What I have done is that $\left(\dfrac{-11}{p}\right) = \left(\dfrac{-1}{p}\right)\left(\dfrac{11}{p}\right)=\left(\dfrac{p}{11}\right)$ by reciprocity. From this, I computed all the possible cases one by one (ex: $p$ is congruent with $1,2,3,4,5,6,7,8,9,10 \pmod{11}$).
But is there a more efficient way?
You know that there are $5$ quadratic residues modulo $11$. (In general, there is $\frac{p-1}2$ quadratic residues and $\frac{p-1}2$ quadratic non-residues modulo a prime $p$.)
In short, once you have $5$ quadratic residues, you do not have to continue.