This directory contains an implementation of the smoothfac algorithm for
calculating factorizations of
The program is written in Mojo. To install Mojo, follow the install instructions in the getting started guide.
To run the program, change into this directory and start a Magic shell
cd src/mojo/
magic shellThe default mode of the program is to optimize lower and upper bounds for
mojo run smoothfac.mojo 300000You should see the output
OEIS result: N = 300000 t(N) = 101903 T_ub = 101906
as the final output line.
When the program is invoked with two arguments, the second argument is a filename and the program writes the lower bound factorization to disk.
To run the program for a single fixed threshold SMTHFC_FIX_THRES set to the desired value
SMTHFC_FIX_THRES=100000 mojo run smoothfac.mojo 300000You should see the output
Total factors: 300445
as the final output line.
There is a PDF document containing some information on the algorithm and implementation details.