Skip to main content
Challenges Euler's function and RSA key
Cryptography Medium Euler's function Solves: 8

Euler's function and RSA key

Author: CyberSamSU
Points
35

Euler's totient function φ(n) is the number of integers from 1 to n that are coprime with n. For a prime number, this is very simple: φ(p) = p - 1, because all numbers from 1 to p-1 are coprime with p.

The function is multiplicative: if p and q are distinct prime numbers, φ(p·q) = (p-1)·(q-1). According to Euler's theorem, a^φ(n) ≡ 1 (mod n) — this is a generalization of Fermat's Little Theorem and this is exactly what RSA uses.

In RSA, given the public exponent e, the private exponent will be d ≡ e⁻¹ (mod φ(n)). Based on the following data, find d.

p = 247721017340933
q = 235511774384629
e = 65537

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 −3 pts Log in
Hint 2 −7 pts Log in
Hint 3 −10 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. Muhlisa Boriyeva 19.11.2026
6. Komilovna 19.11.2026
7. Zulxumor 19.11.2026
8. farang1z_06 20.11.2026