Define a metric on $\mathbb{N}$ by fixing a prime, $p$, and setting $$d(x,y)=\begin{cases} 0 & x=y \\ p^{-k} & \text{otherwise} \end{cases}$$ where $p^k$ is the highest power of $p$ that divides $|x-y|$.
There were a couple easy parts like showing that this is a metric space and finding a sequence which converges to zero, but these last two have me stumped.
(i) Prove or disprove: The space $(\mathbb{N},d)$ is compact. I feel like I need to understand what open sets in this topology will look like first, so I tried to work out how open balls behave. $B(x,2)=\mathbb{N}$ as this contains all numbers since the difference can have $1$ as its largest power of $p$ which divides it, and $2$ is chosen arbitrarily since it is greater than 1. From here I start to get more confused it seems like $B(x,p^{-k})$ is the set of integers of the form $n\equiv x\mod{p^{k+1}}$, but I'm not really sure how to prove this. From here I'm not even sure how to go about making an argument about open covers so if anyone can guide me in the right direction that would be appreciated.
(ii) Prove or disprove: If $p=3$, then the set of prime numbers greater that $101$ is open in $(\mathbb{N})$. This seems very unlikely to me. I can pick an element in this set, $103$, then I don't think I can find an open ball containing $103$ that is a subset of theses primes. I'm basing this off my assumption that the open balls are of the form described above, but I'm not sure how to show this rigorously.
Any tips are greatly appreciated.
(i) Consider the sequence
$$1, 1+p, 1+p+p^2,\ldots, \sum_{i=0}^np^i,\ldots$$
which is clearly Cauchy, but does not converge to any natural number, $n\in\Bbb N$, so $\Bbb N$ is not complete, hence not compact.
Proof of non-convergence:
If $n\in\Bbb N$ represent $n$ as a finite sum of powers of $p$, which is possible to do constructively and is called a base $p$ representation of $n$. Then subtracting the finite sum from the infinite one, we see that only some finite power can divide the difference, namely $p^j$ where $j$ is the first non-zero element in the difference of the two sums. Hence the numbers are distance $p^j$ away from one another, and so--since this is positive--they are unequal since in a metric space the axioms include $d(x,y)=0\iff x=y$.
(ii) Let $q>101$ be a prime congruent to $a\mod 3^k$. Then we know that there are infinitely many natural numers $n\equiv a\mod 3^k$ (in particular $q+3^k$ is always even) which are not prime, so pick one such $n$ and then
$$n\in B(q,\epsilon)$$
for any $\epsilon >0$, where $k$ is defined as $k(\epsilon)$ such that $p^{-k}<\epsilon\le p^{1-k}$, so not only does each element does not have an open ball around itself wholly contained in the set, none of the primes do. In particular the set is not open.