# Bridging Number-Theoretic Primality Testing And Algorithmic Optimization: An Adaptive Cryptographic Framework

arXiv: https://arxiv.org/abs/2610.30935 · HTML: https://mlsanity.com/paper/2610.30935/

## Key facts

- No citing papers in the map yet (data through 26 Nov 2026).
- Builds on 4 of its 24 references that are in the map.
- Submitted 22 Oct 2026.

## Builds on (most cited first, 4 of 4)

- [RLCache: Automated Cache Management Using Reinforcement Learning](https://mlsanity.com/paper/1909.13839/) (2019)
- [Gradient Descent Fails to Learn High-frequency Functions and Modular Arithmetic](https://mlsanity.com/paper/2310.12660/) (2023)
- [Local Entropy Search over Descent Sequences for Bayesian Optimization](https://mlsanity.com/paper/2511.19241/) (2025)
- [Taxonomy and Practical Evaluation of Primality Testing Algorithms](https://mlsanity.com/paper/2006.08444/) (2020)

## Abstract (arXiv)

The security of modern public-key cryptographic systems, such as RSA, Diffie-Hellman, and ECC, depends entirely on the computational intractability of the integer factorization and discrete logarithm problems. For these asymmetric algorithms to operate, a core requirement is that the system must be capable of generating, testing, and simultaneously proving the primality of extraordinarily large numbers. To meet those requirements, this study proposes a comprehensive framework, bridging clas- sical number theory with modern machine learning models and optimization algorithms. Specifically, the paper delineates an adaptive, arbitrary-precision architecture dedicated exclusively to primality testing. Concurrently, the research deeply analyzes the theoretical foundations of testing methods (both deterministic and probabilistic), hardware-level optimization techniques, and the application of quantum-secured entropy sources, while providing rigorous mathematical proofs to guarantee security even when the prime distribution is biased.
