Maths WorkshopMaths problems with full solutions
Exercise 1278Number theory › PrimesOlympiadAdded 4 Nov 2026

Infinitely many primes of the form 4k + 3

#primes#Euclid's argument#residues

Statement

Prove that there are infinitely many prime numbers congruent to 33 modulo 44.

Hint

Imitate Euclid. Assume there are finitely many, p1,…,prp_1,\dots,p_r (including 33), and consider N=4p1p2⋯pr−1N=4p_1p_2\cdots p_r-1.

Show solutionHide solution

Solution

Idea. An integer ≡3(mod4)\equiv3\pmod4 cannot be a product of primes all ≡1(mod4)\equiv1\pmod4.

Proof. Suppose the primes ≡3(mod4)\equiv3\pmod4 are exactly p1,…,prp_1,\dots,p_r, and let N=4p1⋯pr−1N=4p_1\cdots p_r-1. Then N≥11N\ge11, NN is odd, and N≡3(mod4)N\equiv3\pmod4.

  • If all prime factors of NN were ≡1(mod4)\equiv1\pmod4, their product NN would be ≡1(mod4)\equiv1\pmod4. Contradiction.
  • So NN has a prime factor q≡3(mod4)q\equiv3\pmod4, hence q=piq=p_i for some ii.

But then pip_i divides both NN and 4p1⋯pr4p_1\cdots p_r, hence divides their difference 11. Contradiction.

Remark. The same trick fails for primes ≡1(mod4)\equiv1\pmod4 (a product of primes ≡3\equiv3 can be ≡1\equiv1); a different argument (using x2+1x^2+1) is needed there. Dirichlet's theorem handles all progressions a mod ma\bmod m with gcd⁡(a,m)=1\gcd(a,m)=1.

Lesson. Euclid's construction works whenever one can arrange the residue of the auxiliary number so that some prime factor must lie in the class under study.