I've been studying for my final exam in a general topology course, and I came upon this problem about compactness that I'm have a really tough time solving.
Let $a$ and $b$ be integers, with $b\neq 0$, and let $A_{a,b} = \{a+nb\,|\,n\in\mathbb{Z}\}$ be an arithmetic progression. The arithmetic progression topology on $\mathbb{Z}$ has a basis $\mathcal{A}=\{A_{a,b}\,|\,a,b\in\mathbb{Z} \text{ and } b\neq 0\}$. The Dirichlet Prime Number Theorem asserts that the arithmetic progression $A_{a,b}$ contains infinitely many prime numbers if $a$ and $b$ are relatively prime. Use this result to prove that $\mathbb{Z}$ is not compact in this topology.
I'm unsure how to use the Dirichlet Prime Number Theorem, as I'm inclined to think that I should be using the infinite primes in an arithmetic progression $A_{a,b}$ satisfying the theorem to create an infinite open cover, but I'm having trouble ensuring that I can create a cover of $\mathbb{Z}$. Elsewhere, I found online that $\bigcup_pA_{-1,p}$ over all prime numbers $p$ should cover the integers and in fact indicates $\mathbb{Z}_+$ is not compact in the arithmetic progression topology, but I can't see how we know it actually covers all integers. If this does hold, though, then wouldn't $A_{0,q}\cup(\bigcup_pA_{-1,p})$, where $q$ is prime, cover the integers and be an infinite cover with no finite subcover, as without $A_{0,q}$, $0$ is not covered, and if any $A_{-1,p}$ is removed, then $p-1$ is uncovered. If $p = q$, removing one basis element from this infinite open cover doesn't make it a finite subcover. However, I feel that this approach is wrong since it doesn't using the Dirichlet theorem at all.