On Exact Totient Recovery in Semiprimes via Square-Root Proximity

This paper studies structural properties of semiprimes N=pq in computational number theory, focusing on cases where the prime factors are close. We analyze the relationship between N and φ(N) and show that, under a bounded prime gap condition, these quantities exhibit strong proximity. Specifically, assuming |p−q|≤2l/4 for an l-bit semiprime, we prove that the Euler totient function admits the exact representation φ(N)=N−1−2⌊N⌋. Based on this result, we develop an interval-based method for reconstructing φ(N) within a narrow neighborhood derived from square-root bounds, followed by a discriminant-based refinement step for recovering the prime factors. Experimental evaluation on large semiprimes, including RSA-type moduli of 4095 and 4096 bits, shows that the method operates efficiently under the stated structural condition using only elementary integer arithmetic. These results provide a theoretical characterization of semiprimes with small prime gaps and offer a framework for identifying structurally weak RSA moduli. This method, given its high efficiency when the prime factors are close to each other, can be regarded as an alternative to Fermat’s factorization method. In particular, for semiprime integers with a small prime gap (i.e., |p−q| is small), the proposed approach exploits structural properties based on the proximity of square roots, thereby significantly accelerating the factorization process. Consequently, it not only aligns with the theoretical foundation of Fermat’s method but, under certain conditions, may also achieve comparable or even superior practical performance.

Authors

Institutions

Publication Details

Journal
Mathematics
Published
2026-05-21
DOI
https://doi.org/10.3390/math14101784
Primary Topic
Cryptography and Residue Arithmetic
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

On Exact Totient Recovery in Semiprimes via Square-Root Proximity

Bakhtiyor Abdurakhimov, Ergashevich Halimjon Khujamatov, Abdinabi Mukhamadiyev, Răzvan Crăciunescu et al.
Mathematics
Cryptography and Residue Arithmetic
article

On Exact Totient Recovery in Semiprimes via Square-Root Proximity

Bakhtiyor Abdurakhimov, Ergashevich Halimjon Khujamatov, Abdinabi Mukhamadiyev, Răzvan Crăciunescu, Ugiloy Akhadova, Ilkhom Boykuziev
article en

Abstract

This paper studies structural properties of semiprimes N=pq in computational number theory, focusing on cases where the prime factors are close. We analyze the relationship between N and φ(N) and show that, under a bounded prime gap condition, these quantities exhibit strong proximity. Specifically, assuming |p−q|≤2l/4 for an l-bit semiprime, we prove that the Euler totient function admits the exact representation φ(N)=N−1−2⌊N⌋. Based on this result, we develop an interval-based method for reconstructing φ(N) within a narrow neighborhood derived from square-root bounds, followed by a discriminant-based refinement step for recovering the prime factors. Experimental evaluation on large semiprimes, including RSA-type moduli of 4095 and 4096 bits, shows that the method operates efficiently under the stated structural condition using only elementary integer arithmetic. These results provide a theoretical characterization of semiprimes with small prime gaps and offer a framework for identifying structurally weak RSA moduli. This method, given its high efficiency when the prime factors are close to each other, can be regarded as an alternative to Fermat’s factorization method. In particular, for semiprime integers with a small prime gap (i.e., |p−q| is small), the proposed approach exploits structural properties based on the proximity of square roots, thereby significantly accelerating the factorization process. Consequently, it not only aligns with the theoretical foundation of Fermat’s method but, under certain conditions, may also achieve comparable or even superior practical performance.

MathematicsVol. 14(10)
Gachon University (KR), Tashkent University of Information Technology (UZ), National University of Uzbekistan (UZ), Universitatea Națională de Știință și Tehnologie Politehnica București (RO)
Reduced inequalities
Openalex Percentile: Top 3%
Cryptography and Residue Arithmetic
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.