Skip to main content

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

This version

1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dansoto-1.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

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

dansoto-1-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

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

Hashes for dansoto-1.tar.gz
Algorithm Hash digest
SHA256 c85601f20b5dcc493a96a0b7c17a94ce03fec5fb4b83b02762ed1ebaca539049
MD5 e7368474e298c93d5ffbf503bb97c8af
BLAKE2b-256 3bc7f8bfda5ce0114d7d4380beac2db3ae5c17a662106bdc64e424f49c31e4e0

See more details on using hashes here.

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

Hashes for dansoto-1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a17c01f0a180484ed341893a8919c53296006961b4c0b2606e701186976ad73
MD5 f86b3012542b28ee3ba9f1f420b12ee8
BLAKE2b-256 bbfed6981d2490a1c15cee7f0d665a48e4411aac81de79f76e37bc44dc37a519

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