Category: Logic and Proof Level: 201
N = p1· p2· … · pk + 1 has a prime factor missing from the list
Assume the opposite of the claim and follow it to something impossible. If the primes were a finite list, multiplying them and adding 1 builds a number no prime on the list divides.
To prove there are infinitely many primes, suppose there are only finitely many. For a small picture, pretend the whole list is 2, 3, 5, and 7.
primes = {p1, p2, …, pk}
Multiply every prime on the list and add 1. Here the product is 210, so N is 211.
N = p1· p2· … · pk + 1
Each prime divides the product 210, shown as a blue dot. N sits one step past it, so every division leaves remainder 1. No prime on the list divides N.
211 ÷ p leaves remainder 1
Every whole number above 1 has a prime factor. N has one, but it cannot be on the list. So the list was missing a prime, which breaks the assumption.
211 is prime, and 211 ∉ {2, 3, 5, 7}
The same move defeats any finite list. With six primes, N = 30031 splits into primes 59 and 509, again missing from the list. The primes never run out.
no finite list holds every prime
cd svg-generator python3 -m svgmath render proof-by-contradiction --out /tmp/proof-by-contradiction
Source: svgmath/diagrams/proofs.py