Using \(z_{0.025} = 1.96\text{,}\)
\begin{equation*} n \gt \big ( \frac{1.96}{0.02} \big )^2 \cdot 0.23 \cdot 0.77 \approx 1700.87 \end{equation*}
and so pick at least 1701 as the sample size.