Skip to main content
Challenges Quadratic residues
Cryptography Medium Quadratic residues Solves: 6

Quadratic residues

Author: CyberSamSU
Points
35

The number a is called a quadratic residue modulo mod p if such x can be found that x² ≡ a (mod p). In simple terms: a has a modular square root.

For an odd prime p, exactly half of the numbers from 1 to p-1 are quadratic residues. And each residue has exactly two roots: if x is a root, p - x is also a root (because (p-x)² = p² - 2px + x² ≡ x²).

Only one of the following four numbers is a quadratic residue modulo mod p:

p = 6553
nomzodlar = 1948, 5699, 1687, 1093

Find that number, determine the smaller of its two roots, and assemble the flag in the following format: BAYROQ{M4TH_kvadratik_qoldiq_<qoldiq>_<kichik ildiz>}

Hints 2
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −3 pts Log in
Hint 2 −7 pts Log in
To submit a flag, log in.

First solvers

1. Лазиз 04.10.2026
2. Mirjaxon Qaxxarov 26.10.2026
3. Odam 05.11.2026
4. arcanum 11.11.2026
5. farang1z_06 20.11.2026
6. AGENT X 28.11.2026