My book says "A metric space $(X,d)$ is totally bounded if and only if every sequence in $X$ contains a cauchy subsequence."
Let us take a sequence $\{x_i\}$ such that for every prime number $p$, when $i$ is of the form $p^k$, $x_i$ or $x_{p^k}$ is part of the subsequence converging to $p$. For example, for $p=3$, $\{x_3,x_9,x_{27},\dots\}$ forms a cauchy subsequence converging to $3$.
Clearly, this sequence contains infinite cauchy subsequences. But is it totally bounded? Any help with proving this sequence is totally bounded would be greaty appreciated. For a given $\epsilon\in\Bbb{R}$, selecting the primes as part of the finite set isn't an option, as there are an infinite number of them.
Thanks in advance!