Leonhard
A commons library for Project Euler problems.
Requirements
- Python 3.x
Installation
pip install leonhard
Usage
>>> from leonhard import leonhard
>>> print(leonhard.get_factors_of_positive_integer(10))
[1, 2, 5, 10]
Functionalities
get_factors_of_positive_integer: Gets the factors of a given positive integergenerate_fibonacci_sequence: Generates a Fibonacci sequenceis_prime: Checks if a number is prime or notis_pythagorean_triplet: Checks if a^2 + b^2 = c^2 where a < b < ccount_digits: Counts the number of digits of a given numbergenerate_collatz_sequence: Generates a collatz sequencegenerate_cyclic_permutation: Generates the list of cyclic permutation of a given numberis_triangle_number(): Checks if a number is triangular or not
Samples
Sample files are found in samples/
Metadata
Release files for leonhard 1.6.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| leonhard-1.6.5.tar.gz | 8.0 kB | Without provenance | Details for leonhard-1.6.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| leonhard-1.6.5-py3-none-any.whl | Python 3 | none | any | Details for leonhard-1.6.5-py3-none-any.whl |
Total release size: 17.2 kB
Release files / leonhard-1.6.5.tar.gz
| Download URL | leonhard-1.6.5.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3375af6bac215d6d823044864b6ceb48b391ceea8e251fdd54f1a8e765111a5a
|
|
BLAKE2b-256 checksum How to use checksums |
917eb219c238dcffbcebc39f7192aec34cda630298a705ee1498d72587a01750
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / leonhard-1.6.5-py3-none-any.whl
| Download URL | leonhard-1.6.5-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b49e9075255340eb1d74479140dfb19ede073308cb599a1b392ee89b3441a12
|
|
BLAKE2b-256 checksum How to use checksums |
439cb0223bd78d5ca99f449a0af89b2d80d78befd8112e117cde8c4661b2ccdb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Security for leonhard 1.6.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.