Skip to content

p0dalirius/factorizator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Features

  • Automatically checks if the number is already factored in factordb.com.
  • Local factorization with sagemath.
  • 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.