Solution (source code)

= Solution

<Multiplicativity of the Legendre symbol> gives
$$
\boxed{(ab/p)=(a/p)(b/p).}
$$
This includes the case where $p$ divides a factor, when both sides are zero.