The usual topology of $\Bbb Z$ or $\Bbb N$ is discrete, so continuity becomes trivial.
A function from $S$ to $T$ is continuous if the preimage of an open set in $T$ is open in $S$. When $S=\Bbb N$, every set is open in $S$ because the topology is discrete, so every function is continuous.