Let a topology $\tau$ is defined on $\mathbb{Z}$ is as follows: $$ \tau=\{U\subset \mathbb{Z} :\ \mathbb{Z}\setminus U\ \text{is finite or}\ 0\notin U \}. $$ Then what about the space $(\mathbb{Z},\tau),$ is it connected, is it compact?
According to me, the space is neither compact nor connected. As $$ \mathbb{Z}=\mathbb{Z}\setminus \{1,2\}\cup \{1,2\} $$ And here $\mathbb{Z}\setminus \{1,2\}$ is open since its complement is finite and it is closed since its complement does not contain $0$. Hence, $\{1,2\}$ is also clopen. So these two will form a separation of the set $\mathbb{Z}$ and hence it is not connected. It is not compact as $$ \{ \{0,1,2,3,\cdots\}, \{-1\}, \{-2\},\cdots, \{-n\},\cdots \} $$ does not have a finite subcover. And hence it is not compact. Am I right?