On a New Variant of Prime Factorization Algorithm
Overview
For centuries, prime factorization has been a fundamental theoretical problem in the mathematical world. Conventionally, the algorithms for prime number factorization demand a computational cost that grows exponentially with the magnitude of number to be factorized. Existing algorithms will hit a formidable barrier due to the finite computation resource practically available. In this research, we have attempted to introduce a new and effective approach: an improvement of Fermat’s Factorization algorithm. Our method mainly involves two variables k and s, s = ceil(sqrt(n*k)), where k is a natural number. This ensures that in most of the cases, we get a small value from s^2 mod n, which aids in finding factors as the distribution of perfect squares are denser at smaller numbers. Results have shown that our approach is capable of prime factorizing numbers hundreds of times faster than the original method, Fermat’s Factorization algorithm, while being almost on par with Pollard’s Rho. For all of the numbers aside of certain semiprimes, our algorithm can factorize it under <0.01 second. Besides, our new method allows us to implement parallel processing while searching for factors, greatly increasing its efficiency. Therefore, this approach is a new gateway to creating an efficient prime factorizing algorithm, hence bringing benefits to the mathematical field.
Competition history
- ISEF 2023
Resources
Related projects
ISEF · 2024
An Elementary Method for Fast Modular Exponentiation With Factored Modulus
ISEF · 2017
A Novel Solution for Integer Factorization with Cryptographic Applications
ISEF · 2016
Using Patterns Found in the Distribution of Prime Numbers to Assist in Writing a Very Efficient Prime Sieve
ISEF · 2017
Optimizing the Search for Mersenne Primes
ISEF · 2019
Mersenne Primes: An Exploratory Study of Patterns and Some New Conjectures
ISEF · 2026
Beyond the Riemann Hypothesis: A Novel Geometric Approach to Deterministic Prime Location for Enhanced Cryptographic Security
ISEF · 2022
Some Notes About Power Residues Modulo Prime: The Challenge To Find a Pattern of Mersenne Primes and To Discover New Primes
ISEF · 2025
Prime Factorization of Linear Combination of Factorials
Closest projects by meaning, across every fair and year in the corpus.
Browse more like this
Source: Regeneron International Science and Engineering Fair