Skip to main content

Tell if a number is prime or not

Project description

🚀Prime number

📄Description

This is a project to tell if a number is prime or not

⚙️ Installation

clone the repository (git must be installed)

git clone https://gitlab.com/ChristopheLagaillarde/algo_fun_prime_number.git 

or you can install it using pip

pip install algo-fun-prime-number

or take the gz file on gitlab and use this command

tar -xzf algo_fun_prime_number-0.1.0.tar.gz

✅Verification

You can have my public key on here: https://keyserver.ubuntu.com/pks/lookup?search=309F4D460B9BF1BD8DD31EAB39A61CA659ADD6E3&fingerprint=on&op=index

Take it and to verify that the integrity and authenticity of my project. You should be able to use this command to do so.

gpg --verify algo_fun_prime_number-0.1.0.tar.gz.asc algo_fun_prime_number-0.1.0.tar.gz

🕹️Usage

You have to import it using this command

from algo_fun.is_prime import is_prime

You can use the function as follow

is_prime(153)

📝LICENSE

Copyright (c) 2024 Christophe Lagaillarde

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

algo_fun_prime_number-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file algo_fun_prime_number-0.1.0.tar.gz.

File metadata

  • Download URL: algo_fun_prime_number-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for algo_fun_prime_number-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7b2bdb8b0738f17082464fe29cb3cb8c2a80dbd5e7c7473f6e6dd0621d64e0ff
MD5 e48e8ea392e6cbc6f0ca035bd3fa48bb
BLAKE2b-256 33ba4c7a2156e4163ae0f1bfb1d981d4882f7523c68fa60a219532981478078f

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