I am aware of this question and this one, the answers to which show that the natural numbers can be equipped with a compact Hausdorff topology. But what happens if one also requires the operation $$ \max: {\Bbb N} \times {\Bbb N} \to {\Bbb N} $$ to be continuous?
My intuition is that it is not possible because the profinite approach fails. More precisely, for each natural $t$, let ${\Bbb N}_t = \{0, 1, \ldots, t \}$. Then $({\Bbb N}_t, \max)$ is a finite (and hence compact Hausdorff for the discrete topology) monoid. Furthermore, the map $$ f_t: ({\Bbb N}, \max) \to ({\Bbb N}_t, \max) \text{ defined by } f_t(x) = \min(x, t) $$ is a monoid morphism. Thus one can embed $({\Bbb N}, \max)$ into the compact Hausdorff product monoid $\prod_{t \in {\Bbb N}}({\Bbb N}_t, \max)$ by identifying $n$ with $(0, 1, 2, \ldots, n, n, n, \ldots)$. Unfortunately, $({\Bbb N}, \max)$ is not closed for this topology, since the sequence $u_n = (0, 1, 2, \ldots, n, n, n, \ldots)$ converges to $(0, 1, 2, \ldots, n, n+1, n+2, \ldots)$.
But perhaps some other topology would work... I also tried to use the fact that a countable compact Hausdorff space contains at least one isolated point, but it does not seem to help. I am probably missing some elementary argument, and help would be welcome.