Introduction
What is GNFS and why does it matter? A high-level overview of integer factorization.
Documentation
Work through each stage of the General Number Field Sieve algorithm with interactive examples.
What is GNFS and why does it matter? A high-level overview of integer factorization.
How to choose polynomials that share a root modulo n, enabling the sieve to work.
Finding smooth relations using logarithmic sieving on both algebraic and rational sides.
Building an exponent matrix and finding its nullspace over GF(2) using Gaussian elimination.
Combining relations to form a congruence of squares and extracting factors via GCD.
See all four stages work together to factor an integer from start to finish.