All Projects â†’ AdamWhiteHat â†’ GNFS

AdamWhiteHat / GNFS

Licence: GPL-3.0 License
A complete, proof-of-concept, C# implementation of the General Number Field Sieve algorithm for factoring very large semi-prime numbers. The focus was on readability and understandability of the code, not performance.

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to GNFS

Math Php
Powerful modern math library for PHP: Features descriptive statistics and regressions; Continuous and discrete probability distributions; Linear algebra with matrices and vectors, Numerical analysis; special mathematical functions; Algebra
Stars: ✭ 2,009 (+5051.28%)
Mutual labels:  math, mathematics, number-theory
Awesome-Math-Learning
📜 Collection of the most awesome Math learning resources in the form of notes, videos and cheatsheets.
Stars: ✭ 73 (+87.18%)
Mutual labels:  math, mathematics, number-theory
math-app-ml
Essential mathematics for applied machine learning and data science
Stars: ✭ 43 (+10.26%)
Mutual labels:  math, mathematics
tukey
Mini stats toolkit for Clojure/Script
Stars: ✭ 17 (-56.41%)
Mutual labels:  math, mathematics
maths-for-deep-learning-ai
A open source book covering the foundational maths of deep learning and machine learning using TensorFlow
Stars: ✭ 35 (-10.26%)
Mutual labels:  math, mathematics
Mathos-Project
The Mathos Core Library
Stars: ✭ 22 (-43.59%)
Mutual labels:  math, mathematics
pyrgg
🔧 Python Random Graph Generator
Stars: ✭ 158 (+305.13%)
Mutual labels:  math, mathematics
mish
A no-std libm implementation in Rust
Stars: ✭ 14 (-64.1%)
Mutual labels:  math, mathematics
Oscar.jl
A comprehensive open source computer algebra system for computations in algebra, geometry, and number theory.
Stars: ✭ 182 (+366.67%)
Mutual labels:  math, mathematics
rclc
Mathematical expression calculator with big integers, floats, common fractions, and complex numbers support
Stars: ✭ 24 (-38.46%)
Mutual labels:  math, mathematics
Hecke.jl
Computational algebraic number theory
Stars: ✭ 142 (+264.1%)
Mutual labels:  math, number-theory
JSage
Something like Sage, but for the WebAssembly and JavaScript world.
Stars: ✭ 23 (-41.03%)
Mutual labels:  mathematics, number-theory
Mathematics for Machine Learning
Learn mathematics behind machine learning and explore different mathematics in machine learning.
Stars: ✭ 28 (-28.21%)
Mutual labels:  math, mathematics
codex
A repository of mathematical knowledge written in the MathLingua language.
Stars: ✭ 17 (-56.41%)
Mutual labels:  math, mathematics
graphest
A faithful graphing calculator
Stars: ✭ 42 (+7.69%)
Mutual labels:  math, mathematics
Tau.jl
A Julia module providing the definition of the circle constant Tau (2π)
Stars: ✭ 33 (-15.38%)
Mutual labels:  math, mathematics
string-math
Evaluates a math expression from a string. Supports variables and custom operators.
Stars: ✭ 14 (-64.1%)
Mutual labels:  math, mathematics
Program-Matematika
Program Matematika adalah sebuah repository GitHub yang berisi program yang dapat memudahkan para pelajar atau guru dalam menyelesaikan masalah Matematika dengan Terminal
Stars: ✭ 15 (-61.54%)
Mutual labels:  math, mathematics
Fourier-and-Images
Fourier and Images
Stars: ✭ 81 (+107.69%)
Mutual labels:  math, mathematics
Linear-Algebra-and-Its-Applications-notes
《įšŋ性äŧĢæ•°åŠå…ķåš”į”Ļã€‹įŽ”čŪ°
Stars: ✭ 196 (+402.56%)
Mutual labels:  math, mathematics

C# GNFS

C# .NET implementation of the general number field sieve for factoring very large semi-prime numbers, which are used by the RSA public key encryption algorithm. The general number field sieve is an involved process, consisting of many steps: a polynomial creation, testing and selection process, finding 'relations' who's algebraic and rational norms are smooth with respect to an algebraic and rational factor base, the creation, and solving of a (very) large (0,1)-matrix to find sets of relations where the product of all the norms in that set are a perfect square number, finding the square roots of polynomials over a finite field, the Chinese remainder theorem and finally the testing of several found candidates for a non-trivial difference of squares.

Did you understood all that? Good. Because it's * just * that easy, folks!   /s

Screenshots

Screenshot

Literature & Publications

Below is some literature on the subject of General Number Field Sieves that helped guide me during the construction of this project. Most of the code was written after reading Per Leslie Jensen's paper. However, the final step, finding the square root of a polynomial over a finite field (or called simply the 'square root step') was the most challenging step because it required an understanding of abstract algebra, and Per Leslie Jensen's paper was almost completely void of any details pertaining to this step. I used Matthew E. Briggs's paper to help guide me in writing the code for the final step.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].