View Single Post
Old 2018-03-21, 17:10   #2
Till's Avatar
"Tilman Neumann"
Jan 2016

13×37 Posts

You can have a look at my PSIQS package at

It is not small (~900 kb source code), but that's due to the following reasons:
* many comments
* different implementations of the same tasks (e.g. sieving, trial division)
* contains several "smaller" factoring algorithms
* contains all the basic algorithms required for a fast SIQS

It should be rather easy to understand. Start with class SIQS and subsequently pick the simplest member of each subalgorithm. E.g. at the beginning you might want to see SimpleSieve instead of DoubleBlockHybridSieveU...

Btw. I'ld bet that there is no Fortran implementation that is easy to understand ;-)
Till is offline   Reply With Quote