I think the primes are a distraction, honestly, but who knows. They might have something to do with the answer.
I think the solution is something like this, but I'm too lazy to finish it...
Assumptions:
A) All numbers 4^k - 1 are divisibly by 3... definitely true but too lazy to find a proof
1) Let S be the set of numbers that reduce (eventually) to 1.
2) Trivially, 1 is in S by definition.
3) For any number n that is in S, every number (n)(2^m) is in S, for all m. (because they all reduce to n by dividing by 2 m times)
4) All numbers (4^k - 1) / 3 are in S. (because doing the step 3n+1 gives you 4^k, which must be in S from step 3)
5) All numbers (2^p)((4^k - 1) / 3) are in the set for all p and all k. (because they all reduce to ((4^k - 1) / 3) by dividing by 2 p times)
After that the proof kind of becomes recursive and a big pain in the ass.
The gist of it is that steps 2 and 3 give you all the numbers like this:
1, 2, 4, 8, 16, 32, 64, ...
Then step 4 gives you all the numbers like this:
5, 21, 85, 341, 1365, ...
But then applying step 2 again gives you all of those numbers times 2^m:
5, 10, 20, 40, 80, 160, ...
21, 42, 84, 168, 336, 672, ...
85, 170, 340, 680, 1360, ...
Maybe a better way to say it is like this...
Let S1 be every power of two. Those are all in S.
Let S2 be every *other* element of S1, minus 1, divided by 3. These are all in S because applying 3n+1 yields an element of S1.
Let S3 be every element of S2 multiplied by every power of two. These are all in S because you just divide by 2 until you get an element of S2.
Let S4 be every *other* element of S3, minus 1, divided by 3. These are all in S because applying 3n+1 yields an element of S3.
Let S5 be every element of S4 multiplied by every power of two. These are all in S because you just divide by 2 until you get an element of S4.
... and so on and so on, forever, which eventually puts all positive integers in S. This is left as an exercise for the reader.