2. Hint : split up the $p_i$'s into two classes, according to whether they are $\equiv 1 \mod 4$ or $\equiv -1 \mod 4$.