MathLabs
Step 6 of 7: Contradiction and conclusion: infinitely many primes exist
In plain words

We now hold two facts side by side: the prime q divides N with remainder 0, whereas every single prime on the list L leaves remainder 1 when dividing N. Therefore q cannot be any of the primes on the list — we have caught a prime that the supposedly complete list left out.

q∣N and (∀ pi∈L, pi∤N)  ⟹  q∉{p1,p2,…,pn}q \mid N \text{ and } (\forall\, p_i \in L,\ p_i \nmid N) \implies q \notin \{p_1, p_2, \dots, p_n\}
Detailed analysis

Combine Step 4 and Step 5: Step 5 gave us a prime number qq that divides NN (q∣Nq \mid N), while Step 4 showed that no prime pip_i in the list L={p1,p2,…,pn}L = \{p_1, p_2, \dots, p_n\} divides NN (pi∤Np_i \nmid N). Consequently, qq cannot equal pip_i for any i∈{1,…,n}i \in \{1, \dots, n\}, which means q∉Lq \notin L is a brand-new prime number not in our list.

If we assumed at the start that LL was the complete list of all primes in existence, finding a prime q∉Lq \notin L directly contradicts that assumption. Since nn was an arbitrary finite number, no finite list can ever contain all prime numbers. As Euclid concludes at the end of Book IX, Proposition 20: "Therefore, prime numbers are more than any assigned multitude of prime numbers."

Knowledge used in this step