I've found seven $n$ for which $\tau(n),$ the number 0f divisors of $n,$ coincides with $\varphi(n),$ the "totient" function, number of integers from $1$ to $n$ and coprime to $n.$ Namely $1,3,8,10,18,24,30.$
Are there more? Or a relatively simple proof that this is all of them?
Thanks for any information.
Note: The answer of Wojowu proves the list complete. But it relies on a (to me) deep result for a lower bound on $\varphi(n)$ which holds for $n>1296.$ I'd still be interested in a simpler proof tht the list is complete, if possible.