https://github.com/bdr-pro/primeshor
PrimeShor to find factors of a number
https://github.com/bdr-pro/primeshor
Last synced: over 1 year ago
JSON representation
PrimeShor to find factors of a number
- Host: GitHub
- URL: https://github.com/bdr-pro/primeshor
- Owner: BDR-Pro
- Created: 2023-10-12T11:39:37.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-12T11:57:06.000Z (over 2 years ago)
- Last Synced: 2025-01-21T18:38:56.581Z (over 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PrimeShor to find factors of a number
**factorize** return a tuple of two prime factors rasie an execption of error or the number is a prime
**isPrime** return true if it is a prime false if it not
```
>>> import prime
>>>
>>> print(prime.isPrime(5))
True
>>> print(prime.factorize(64))
(2, 32)
>>>
```
**Installation**
```
git clone https://github.com/BDR-Pro/PrimeShor
pip install PrimeShor/dist/PrimeShor-1.0.0-py3-none-any.whl
```