Números primos
Project description
dansoto
Una pequeña librerÃa con la función isPrime para verificar si un número es primo.
Instalación
Instala la librerÃa con pip:
pip install dansoto
Uso
Función: isPrime(n) Verifica si un número es primo.
python Copiar código from dansoto import isPrime
Ejemplo de uso
print(isPrime(7)) # True
print(isPrime(10)) # False
Parámetros
n (int): Número a verificar.
Retorna: True si el número es primo. False en caso contrario.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 dansoto-1.tar.gz.
File metadata
- Download URL: dansoto-1.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c85601f20b5dcc493a96a0b7c17a94ce03fec5fb4b83b02762ed1ebaca539049
|
|
| MD5 |
e7368474e298c93d5ffbf503bb97c8af
|
|
| BLAKE2b-256 |
3bc7f8bfda5ce0114d7d4380beac2db3ae5c17a662106bdc64e424f49c31e4e0
|
File details
Details for the file dansoto-1-py3-none-any.whl.
File metadata
- Download URL: dansoto-1-py3-none-any.whl
- Upload date:
- Size: 1.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a17c01f0a180484ed341893a8919c53296006961b4c0b2606e701186976ad73
|
|
| MD5 |
f86b3012542b28ee3ba9f1f420b12ee8
|
|
| BLAKE2b-256 |
bbfed6981d2490a1c15cee7f0d665a48e4411aac81de79f76e37bc44dc37a519
|