Integer Factorization
Integer factorization breaks a whole number into smaller factors, a basic arithmetic task that becomes computationally difficult for some very large numbers.
Explore books and products on Amazon
As an Amazon Associate, LinkPods earns from qualifying purchases.
Amazon · paid link
Books
Reading about Integer Factorization
Browse on AmazonAmazon · paid link
Kits and models
Hands-on sets for learning at home
Browse on Amazon
Links open Amazon search results; LinkPods has not reviewed the items listed there.
Integer factorization means expressing a positive whole number as a multiplication of integer factors. A number greater than 1 is composite if it can be split into factors that are themselves greater than 1; otherwise, it is prime. For example, 15 splits into 3 × 5. Repeatedly breaking down composite factors eventually gives a prime factorization. The fundamental theorem of arithmetic guarantees that these prime factors are fixed, regardless of their order.
For small numbers, trial division is a straightforward approach: try dividing by successive primes, starting with 2, and check candidates up to the number’s square root. Computer methods can handle larger numbers more effectively. Some methods exploit particular features of a number or the size of its factors, while general-purpose methods apply more broadly. The general number field sieve is a leading classical method for large integers.
Recognizing a prime and finding factors are different computational tasks. The AKS primality test can determine whether a number is prime in polynomial time, but that result does not supply the factors of a composite number. No classical algorithm is known to factor every integer in polynomial time, and nobody has proved that one is impossible. Particularly demanding cases include products of two large primes of similar size, provided the primes are not too close together.
This difficulty matters because RSA encryption and digital signatures rely on problems connected to factoring large numbers. An efficient method for arbitrary integers would undermine RSA security. Peter Shor developed a quantum factoring algorithm in 1994 that runs in polynomial time on an ideal quantum computer. Its practical use requires sufficiently capable quantum hardware and control of errors. The possibility of such attacks has encouraged research into cryptography designed to withstand quantum computers.
Common questions
What is integer factorization?
Integer factorization expresses a positive whole number as a product of integer factors. Continuing until all the factors are prime produces its prime factorization, which is unique except for the order of the factors.
How does trial division work for integer factorization?
Trial division looks for factors by testing divisibility by successive prime numbers, beginning with 2. For a number n, the search checks primes up to the square root of n. It is a simple method for small numbers, while more sophisticated algorithms are more efficient for larger ones.
Why is integer factorization hard for large numbers?
For difficult large inputs, the work required by known classical factoring methods grows sharply as the number gets longer. Products of two large primes of similar size are especially challenging when their factors are not too close together. No classical algorithm is known that factors every integer in polynomial time.
Why does integer factorization matter for RSA?
RSA security depends on the presumed difficulty of factoring large composite numbers or solving a related problem. An algorithm that could efficiently factor arbitrary integers would make RSA-based public-key cryptography insecure. This connection makes factorization important to both encryption and digital signatures.
Can quantum computers solve integer factorization efficiently?
Shor’s algorithm can factor integers in polynomial time on an ideal quantum computer. Peter Shor developed it in 1994. Turning that theoretical advantage into a practical attack requires enough qubits and effective handling of quantum errors.
Where this leads
Select any dot to open that topic. The outer ring shows where each connection leads next.
RSA Encryption (Rivest–Shamir–Adleman) →
RSA encryption uses a modulus whose factorization into its secret prime factors allows the private key to be calculated.
RSA Encryption (Rivest–Shamir–Adleman) →
Factoring an RSA public modulus reveals the primes needed to calculate its private key.
The Unsolved Problems of Mathematics →
Whether a classical polynomial-time algorithm exists for integer factorization remains an open problem.
Technology
RSA Cryptosystem →
Factoring RSA's public modulus into its prime factors allows an attacker to calculate the private key.
Technology
Shor's Algorithm →
Shor's algorithm solves integer factorization in polynomial time on a quantum computer, with runtime measured against the integer's number of bits.