Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bdr-pro/primeshor
PrimeShor to find factors of a number
https://github.com/bdr-pro/primeshor
Last synced: about 2 months 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 (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-12T11:57:06.000Z (about 1 year ago)
- Last Synced: 2023-10-13T07:44:28.410Z (about 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/PrimeShorpip install PrimeShor/dist/PrimeShor-1.0.0-py3-none-any.whl
```