Maths WorkshopMaths problems with full solutions
Exercise 1837Number theory › PrimesOlympiadAdded 3 Nov 2026

Primorial and GCD

#primorial#gcd#primes

Statement

Let pnp_n be the nn-th prime and #n=p1⋯pn\#_n=p_1\cdots p_n the primorial. Show that #n+1\#_n+1 is coprime to every prime ≤pn\le p_n.

Hint

Any prime p≤pnp\le p_n divides #n\#_n; if it also divides #n+1\#_n+1, then it divides 11.

Show solutionHide solution

Solution

Setup. pi∣#np_i\mid\#_n.

Contradiction. If pi∣#n+1p_i\mid\#_n+1, then pi∣(#n+1)−#n=1p_i\mid(\#_n+1)-\#_n=1, impossible.

Conclusion. gcd⁡(#n+1,pi)=1\gcd(\#_n+1,p_i)=1 for all i≤ni\le n; so any prime divisor of #n+1\#_n+1 is >pn>p_n.