As described on Numberphile, this script will attempt to find friendly numbers for a given integer.
Install the dependencies:
pip3 install -r requirements.txt
Update the index_search
and where_to_start
variables in the friendly.py
file to appropriate values if you are not using the defaults, and then simply run:
python3 friendly.py
Progress will be reported on screen every 10,000 checks and written to a checkpoint file for easy resumption if the script is stopped for whatever reason.