Show that $Z_{7}[\sqrt{3}]=\left\{a+b \sqrt{3} \mid a, b \in Z_{7}\right\}$ is a field. For any positive integer $k$ and any prime $p$, determine a necessary and sufficient condition for $Z_{p}[\sqrt{k}]=\left\{a+b \sqrt{k} \mid a, b \in Z_{p}\right\}$ to be a field.