Skip to main content

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.

Metadata

Release files for dansoto 1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dansoto 1
File Size Uploaded
dansoto-1.tar.gz 1.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dansoto 1
File Interpreter ABI Platform
dansoto-1-py3-none-any.whl Python 3 none any Details

Total release size: 3.6 kB

Release files / dansoto-1.tar.gz

Download URL dansoto-1.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c85601f20b5dcc493a96a0b7c17a94ce03fec5fb4b83b02762ed1ebaca539049
BLAKE2b-256 checksum
How to use checksums
3bc7f8bfda5ce0114d7d4380beac2db3ae5c17a662106bdc64e424f49c31e4e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / dansoto-1-py3-none-any.whl

Download URL dansoto-1-py3-none-any.whl
Size 1.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a17c01f0a180484ed341893a8919c53296006961b4c0b2606e701186976ad73
BLAKE2b-256 checksum
How to use checksums
bbfed6981d2490a1c15cee7f0d665a48e4411aac81de79f76e37bc44dc37a519
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page