Skip to main content

Library of divisibility features (1-99) without modulo (%). Based on cross sums, block sums and reduction algorithms. On large numbers it works much faster than %.

usage:

Create instance

dv = DivisibilityLibrary()

Examples

print(f"12375 through 99: {dv.by_99(12375)}") # True (1+23+75=99)

print(f"1001 through 7: {dv.by_7(1001)}") # True (100-2*1=98)

print(f"392 through 98: {dv.by_98(392)}") # True (2*3+92=98)

Metadata

Release files for divisibility-library 0.2.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 divisibility-library 0.2.1
File Size Uploaded Provenance Actions
divisibility_library-0.2.1.tar.gz 2.9 kB Without provenance Details for divisibility_library-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for divisibility-library 0.2.1
File Interpreter ABI Platform Actions
divisibility_library-0.2.1-py3-none-any.whl Python 3 none any Details for divisibility_library-0.2.1-py3-none-any.whl

Total release size: 6.3 kB

Release files / divisibility_library-0.2.1.tar.gz

Download URL divisibility_library-0.2.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c2131d30b277f3062f50988db0c6627843e83be77f7a95f3d728dd30f604318f
BLAKE2b-256 checksum
How to use checksums
be195ce87e06a6f3d3029cb1f74557618a99478b1dde3ebc2252003252c575ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / divisibility_library-0.2.1-py3-none-any.whl

Download URL divisibility_library-0.2.1-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ab601957800d617e6cca306dc4994e5fb9c9d9140b0910d1d5bc26ad87bef99
BLAKE2b-256 checksum
How to use checksums
4fe3810ab40b72ec5409bc34044b22d94e2d70127ce6e0bb3baea8dbfe1e968d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for divisibility-library 0.2.1

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