Skip to main content

A Python package to check if a number is prime

Project description

Prima is a simple Python package that provides a class for checking whether a given number is prime.

Usage:
```
from Prima import Prima

number = 17
primality_checker = Prima(number)

if primality_checker.is_prima():
    print(f"{number} is a prime number.")
else:
    print(f"{number} is not a prime number.")
```

The package uses a basic algorithm to determine primality by checking divisibility up to the square root of the given number.

For more information, please visit the GitHub repository: https://github.com/yourusername/Prima

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

Primaaaaaaa-0.0.1.tar.gz (1.3 kB view details)

Uploaded Source

File details

Details for the file Primaaaaaaa-0.0.1.tar.gz.

File metadata

  • Download URL: Primaaaaaaa-0.0.1.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.2

File hashes

Hashes for Primaaaaaaa-0.0.1.tar.gz
Algorithm Hash digest
SHA256 13c59499983dec70cff3ad648c0190d91fece4f6a151b4a855a9b44dd9ff244a
MD5 a1f5b40f8e91da13a8379c6a5f4bb3f1
BLAKE2b-256 6f3d320d920c75e4c04a4e7802808389a3ba813e759b4d309a82a02dea7706a6

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