The hypothesis assumes we have all the primes. This avoids the traps in many other proofs. The proof given by Hardy and Wright, (1960, 4th ed. p. 6) is an example of a defective proof.
Hardy, G. H. and E. M. Wright 1960. An Introduction to the Theory of Numbers. 4th ed. Oxford: Clarendon Press.