factorizator icon indicating copy to clipboard operation
factorizator copied to clipboard

A script to factorize integers with sagemath and factordb.

A script to factorize integers with sagemath and factordb.
GitHub release (latest by date) YouTube Channel Subscribers

Features

  • [x] Automatically checks if the number is already factored in factordb.com.
  • [x] Local factorization with sagemath.
  • [x] Export the found factors to factors.json.

Requirements

Install the following requirements for the script to work properly:

sudo apt install sagemath
python3 -m pip install requirements.txt

Usage

$ ./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.

Contributing

Pull requests are welcome. Feel free to open an issue if you want to add other features.