Skip to main content
Challenges Chinese remainder theorem
Cryptography Medium Chinese remainder theorem (CRT) Solves: 7

Chinese remainder theorem

Author: CyberSamSU
Points
40

The Chinese Remainder Theorem (CRT) is very ancient: in the III century AD, Sun Tzu solved the problem "an unknown number whose remainders when divided by 3, 5 and 7 are known". The theorem states: if the moduli are pairwise coprime, the system has a unique solution modulo N = n₁·n₂·n₃.

In cryptography, CRT is everywhere: in speeding up RSA (CRT-RSA), in Håstad's attack, in the Pohlig-Hellman algorithm, and in secret sharing. The formula for combining two equations is: x = a₁ + n₁ · ((a₂ - a₁) · n₁⁻¹ mod n₂).

Solve the following system and find x under the condition 0 ≤ x < N:

x ≡ 3372442  (mod 8393717)
x ≡ 8354889  (mod 20722073)
x ≡ 20442406  (mod 54037019)

Answer: only a number — in decimal format, without spaces and additional characters (for example 1234).

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

First solvers

1. W.o.X 17.09.2026
2. Лазиз 04.10.2026
3. Mirjaxon Qaxxarov 26.10.2026
4. Odam 05.11.2026
5. arcanum 11.11.2026
6. Jasmin Xuseinova 15.11.2026
7. AGENT X 28.11.2026