TITLE: What's wrong with this proof of the infinity of primes?
QUESTION [20 upvotes]: While reviewing an online textbook in abstract algebra for my website—which I'm hoping will go live by the end of the month—one of the exercises in the book inspired me to produce a simple, set theoretic proof of the infinity of primes. But it looks wrong! I can't say why exactly—but something looks off about it! If anyone can spot what's wrong with it, let me know, I'm too  tired to think of it now. If it's NOT wrong, well, you get to publish that for free, go ahead, I won't fight you for credit. But boy, I'd be shocked if no one ever thought of this and it's correct! 

There are countably infinite positive integers by definition. Decompose the positive integers into the following partition: the set of all primes and the set of all composite positive integers. Assume there are finitely many primes. Then there must be infinitely many composite positive integers because a union of finitely many finite sets is finite. By the fundamental theorem of arithmetic, each composite must be a unique product of primes. Since there is a finite number of primes, let's say $n$ primes, then there are at most $n!$ products of primes. Therefore, there must be at most n! composite positive integers. But that means the positive integers are a union of 2 finite sets and must be finite and this is a contradiction!

There has to be something wrong with this proof, but for the life of me I can't see what it is right now. I'm probably going to kick myself when someone points it out—it's probably something really trivial. 
Any takers?

REPLY [3 votes]: The other answers are correct, of course, but I can't help but feel they're pussyfooting around the the real issue, which is that the fundamental theorem of arithmetic is about multisets of natural numbers.

Fundamental Theorem of Arithmetic. For all $n \in \mathbb{N} \setminus \{0\}$, there is a unique finite multiset of prime numbers
  whose product is $n$.

Now let $P$ denote the set of all prime numbers. If we assume that $P$ is finite, call its cardinality $P$, then its true that $P$ has $2^n$ subsets. But it can still have infinitely many finite multisets. e.g.
$$\{2\}, \{2,2\}, \{2,2,2\}, \ldots$$