Skip to main content

armstrong-checker

A Python library to check if a number is an Armstrong number.

Usage

from armstrong_checker import armstrong

armstrong("153")

or

armstrong(153)

Explanations

  • The function armstrong() receives either a string or an integer containing a number.
  • This number must be an integer.
  • If any other parameter is passed, the function will return an error.
  • The return value of this function is a Boolean.

Tested Limit

The highest Armstrong number tested was:

115132219018763992565095597973971522401

So, I guarantee it will work with any number below that😃😜.

License

This project is licensed under the MIT License.

Instalation

pip install armstrong-checker

Metadata

Release files for armstrong-checker 0.1.5

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

Source distribution (sdist)

Source distribution for armstrong-checker 0.1.5
File Size Uploaded Provenance
armstrong_checker-0.1.5.tar.gz 2.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for armstrong-checker 0.1.5
File Interpreter ABI Platform
armstrong_checker-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 4.2 kB

Release files / armstrong_checker-0.1.5.tar.gz

Download URL armstrong_checker-0.1.5.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8b28a982c30df002fcd263370dd0c125701da1a4cce1e334000e788619079cd1
BLAKE2b-256 checksum
How to use checksums
a22189bbe01a8fd51ad4e7404789564eb6d186f0d8accc29a7e19fcee00dbd89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / armstrong_checker-0.1.5-py3-none-any.whl

Download URL armstrong_checker-0.1.5-py3-none-any.whl
Size 2.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6bf5a83d4548a8e838755833e196d7da29052fd02c4f5e0778256e1133e3afa
BLAKE2b-256 checksum
How to use checksums
3343c2f6b48a7696557201df5ed8e8b3cd4a17d669b9527f62b75515344ce8fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for armstrong-checker 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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