A simple library to check for prime and coprime numbers
Project description
prime_nos
A tiny Python library to check if numbers are prime or coprime.
Installation
pip install prime_nos
has 3 functions:
- is_prime(n) - checks if n is prime or not
- are_coprime(a,b) - checks if a and b are coprime or not
- prime_range(a,b) - returns a list of all prime numbers between a and b
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
prime_nos-0.2.0.tar.gz
(2.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prime_nos-0.2.0.tar.gz.
File metadata
- Download URL: prime_nos-0.2.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
825bac9086f51998dc1ae32f57c5e36dbcbd32cb29b3563f593d547500fd48f6
|
|
| MD5 |
c8990973432d4df0fd61720684b694b9
|
|
| BLAKE2b-256 |
d752bd37f1b29be55c4c3e4c1661ec559b43450be109bbb9806ad0dff35f6524
|
File details
Details for the file prime_nos-0.2.0-py3-none-any.whl.
File metadata
- Download URL: prime_nos-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31aa6931dd04870272323727aec909b4a17b83848055e245e8b226da3b96c8a5
|
|
| MD5 |
224379097256d06aae12deb51283eca6
|
|
| BLAKE2b-256 |
7e09f03d7266396ef36aefbbd834fe294cd2196176362f60044d2e2b3f607f18
|