A script to factorize integers with sagemath and factordb.
- Automatically checks if the number is already factored in factordb.com.
- Local factorization with sagemath.
- Export the found factors to
factors.json
.
Install the following requirements for the script to work properly:
sudo apt install sagemath
python3 -m pip install requirements.txt
$ ./facto.sage.py -h
_____ _ _ _
| ___|_ _ ___| |_ ___ _ __(_)______ _| |_ ___ _ __
| |_ / _` |/ __| __/ _ \| '__| |_ / _` | __/ _ \| '__| v1.3
| _| (_| | (__| || (_) | | | |/ / (_| | || (_) | |
|_| \__,_|\___|\__\___/|_| |_/___\__,_|\__\___/|_| by @podalirius_
usage: facto.sage.py [-h] -n NUMBER
Factorize an integer.
optional arguments:
-h, --help show this help message and exit
-n NUMBER, --number NUMBER
Integer to factorize.
Pull requests are welcome. Feel free to open an issue if you want to add other features.