Let $S_p = \{x^2 \bmod p : x\in\mathbb N\}$, with $p$ prime.
Is there an efficient way to determine if an arbitrary $m \not \in S_p$, where $m \in\mathbb N \bmod p$, without generating $S_p$?
E.g. $S_5 = \{0, 1, 4\}$, $m \in \{2, 3\}$.
Also is there a way to estimate $|S_p|$?