Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
# friendly-numbers | ||
|
||
As described on [Numberphile](https://www.youtube.com/watch?v=KZ1BVlURwfI), this script will attempt to find friendly numbers that match 10 (by default). | ||
As described on [Numberphile](https://www.youtube.com/watch?v=KZ1BVlURwfI), this script will attempt to find friendly numbers for a given integer. | ||
|
||
## Installation | ||
Install the dependencies: | ||
|
||
```python | ||
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: | ||
|
||
```sh | ||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sympy |