Maths WorkshopMaths problems with full solutions
Exercise 910Number theory › Divisibility and gcdHigh schoolAdded 3 Nov 2026

Infinitely many primes

#Euclid#primes#proof by contradiction

Statement

Prove that there are infinitely many prime numbers.

Hint

Assume finitely many p1,…,pnp_1,\ldots,p_n and consider N=p1⋯pn+1N=p_1\cdots p_n+1.

Show solutionHide solution

Solution

Contradiction. Suppose finitely many primes p1,…,pnp_1,\ldots,p_n. Let N=p1⋯pn+1>1N=p_1\cdots p_n+1>1.

Prime divisor. NN has a prime divisor pp, which must be one of the pip_i.

Contradiction. p∣Np\mid N and p∣p1⋯pnp\mid p_1\cdots p_n, so p∣N−p1⋯pn=1p\mid N-p_1\cdots p_n=1, impossible.

Conclusion. There are infinitely many primes.