Maths WorkshopMaths problems with full solutions
Exercise 541Number theory › PrimesHigh schoolAdded 3 Nov 2026

Consecutive primes and coprimality

#consecutive primes#coprime#primorial

Statement

Show that the product of the first nn primes plus 11 is coprime to each of these primes.

Hint

If pip_i divides p1⋯pn+1p_1\cdots p_n+1, then pip_i divides 11.

Show solutionHide solution

Solution

Setup. Let N=p1⋯pn+1N=p_1\cdots p_n+1.

Coprimality. For any pip_i: pi∣p1⋯pnp_i\mid p_1\cdots p_n and if pi∣Np_i\mid N, then pi∣N−p1⋯pn=1p_i\mid N-p_1\cdots p_n=1, contradiction.

Conclusion. gcd⁡(N,pi)=1\gcd(N,p_i)=1 for all ii. So any prime divisor of NN is larger than pnp_n.

Application. This gives another proof that there are infinitely many primes.