Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 615 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 615 Bytes

friendly-numbers

As described on Numberphile, this script will attempt to find friendly numbers for a given integer.

Installation

Install the dependencies:

pip3 install -r requirements.txt

Usage

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.