Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prime_nos-0.2.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

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

Hashes for prime_nos-0.2.0.tar.gz
Algorithm Hash digest
SHA256 825bac9086f51998dc1ae32f57c5e36dbcbd32cb29b3563f593d547500fd48f6
MD5 c8990973432d4df0fd61720684b694b9
BLAKE2b-256 d752bd37f1b29be55c4c3e4c1661ec559b43450be109bbb9806ad0dff35f6524

See more details on using hashes here.

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

Hashes for prime_nos-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31aa6931dd04870272323727aec909b4a17b83848055e245e8b226da3b96c8a5
MD5 224379097256d06aae12deb51283eca6
BLAKE2b-256 7e09f03d7266396ef36aefbbd834fe294cd2196176362f60044d2e2b3f607f18

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page