I'm looking for the fastest prime factorization algorithm for a semiprime of 29-digits. There are many factorization algorithms there, so as far as I know (my background is not maths:)the key factor is the length of the number to be factorized. In this case, it has only 29 digits. Many thanks
2026-03-28 22:37:04.1774737424
Factorization algorithm for a semiprime of 29-digits
120 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in PRIME-FACTORIZATION
- For which natural numbers are $\phi(n)=2$?
- Fractions of the form $\frac{a}{k}\cdot\frac{b}{k}\cdot\frac{c}{k}\cdots=\frac{n}{k}$
- (Number of perfect powers ≤ n) ∼ $\sqrt{n}$?
- How do I solve complicated prime factorization problems? (Ex: 20711)
- Is there a pattern to addition of primesFactored numbers?
- Proof of Fundamental Theorem of Arithmetic: Uniqueness Part of Proof
- Find a prime factor of $7999973$ without a calculator
- Proof verification: Let $gcd(x,y)=1$. If $xy$ is a perfect square, then $x$ and $y$ are perfect squares.
- An idea for approaching Brocard's problem ($n!+1=m^2$)
- Looking for complex roots of unity which also happen to be complex primes
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
For a 29 digit semiprime number, elliptic curve factorization will suffice.
For larger semiprime numbers (around 92 digits and beyond) of a general form, the general number field sieve is the fastest factorization algorithm available.
As a practical matter, just download a program called YAFU, probably from SourceForge, for whatever platform you have. YAFU will factor semiprime numbers for you intelligently, starting with elliptic curve, and switching over to GNFS if needed. YAFU relies on GGNFS and ECM, so download those too as compiled binaries, and supply the paths to the folders the executables are in, in the yafu.ini configuration file, and you should be good to go. The configuration is straightforward, there is a ggnfs_dir and a ecm_path setting you have to set. Also choose how many threads to dedicate to the process. YAFU factors a 100 digit semiprime number (like the RSA-100 challenge number) in about an hour on my machine.
To run YAFU, simply run the yafu-Win32.exe or whatever on the command line and then type:
factor(YOUR_NUMBER_HERE)
So, to factor the RSA-100 number, you would type:
factor(1522605027922533360535618378132637429718068114961380688657908494580122963258952897654000350692006139)
For a number of your size, 29 digits, I imagine it will take a few seconds.
If you are interested in learning the GNFS, first start by reading the Wikipedia on it to get a general overlay of the algorithm. When I was trying to learn it, I read a lot of C code, but the problem with that code is it was meant for performance, not readability. Anyways, I ended up writing an implementation of the GNFS in C#. The goal, beyond learning the GNFS, was to make the code readable, not performance, so people could read it to learn the algorithm, like I wish I had when I was learning. If you are interested, my code is on my GitHub. I also have uploaded a number of whitepapers that I read and referenced in order to help me write the application. The address is https://github.com/AdamWhiteHat/GNFS