Square Roots mod a Prime, Without the Coin Flip

A worked Tonelli–Shanks example shows why finding a non-square helps compute a square root modulo a prime, and where Dirichlet GRH bounds the deterministic search.

November 22, 2026 · 10 min