I've read about this formula on wikipedia, but attempting to use it just gets me:
$$q\equiv 3 \bmod 4\implies p\equiv 1 \mod 4 $$ and$$q\equiv 1 \bmod 4\implies p\equiv 1,3 \mod 4.$$ However, $$1,4,9,3,12,10\equiv x^2\bmod 13 19$$ disproves this. I also don't see how derive $\pm2$ implying $1$ or $7 \mod 8.$
What am I missing,how does Legendre symbol formula $(-1)^{{p-1\over 2}{q-1\over 2}}$, actually show the correct value ?
I do partially understand Euler's criterion.