Cardinality of the set of prime numbers

It is not hard to show that every infinite subset of $\Bbb N$ is in fact of cardinality $\aleph_0$. Let $A$ be such set, and define the following function: $$f(a)=\big|\{n\in A\mid n<a\}\big|.$$

It's not very hard to see that this is a bijection between $A$ and $\Bbb N$.

So we have that the cardinality of $\Bbb P$ is $\aleph_0$ just as well.


Another point worth mentioning is that if $|A|<\aleph_0$ then by definition $A$ is finite (because $\aleph_0$ is a minimal cardinal above the finite cardinals), so if $\Bbb P$ has cardinality smaller than $\aleph_0$ it is finite, in contradiction to all those proofs given that it's not.


Since $\Bbb P \subset \Bbb N$, we have a natural ordering inherited on $\Bbb P$. Since it is a subset of a well-ordering, the induced ordering is again a well-ordering.

Thus we have that $(\Bbb P, <)$ is an infinite well-ordering; it is clear that it contains no limits.

Therefore, the order-type of $(\Bbb P, <)$ must be $\omega$, meaning that it can be put in direct bijective correspondence with $\Bbb N$.


Effectively, this proof (which hinges on the theorem "every well-ordering is order-isomorphic to a unique ordinal") gives a bijection by the following recursive definition:

$$f: \Bbb N \to \Bbb P: f(n) := \begin{cases}\inf \Bbb P &: n = 0\\\inf(\Bbb P \setminus\{f(1)\ldots f(m)\}) &: n = m+1\end{cases}$$

That is, "$f(n)$ is the $n+1$st smallest prime number".


$\aleph_0$ is the smallest infinite cardinal. Therefore, since $\mathbb{P}$ is infinite, $|\mathbb{P}| \geq \aleph_0$. Finally, $|\mathbb{P}|= \aleph_0$.