Library of divisibility features (1-99) without modulo (%)
Project description
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)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file divisibility_library-0.2.1.tar.gz.
File metadata
- Download URL: divisibility_library-0.2.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2131d30b277f3062f50988db0c6627843e83be77f7a95f3d728dd30f604318f
|
|
| MD5 |
9dc9ecc5606d591308fe88d419ddd61a
|
|
| BLAKE2b-256 |
be195ce87e06a6f3d3029cb1f74557618a99478b1dde3ebc2252003252c575ff
|
File details
Details for the file divisibility_library-0.2.1-py3-none-any.whl.
File metadata
- Download URL: divisibility_library-0.2.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ab601957800d617e6cca306dc4994e5fb9c9d9140b0910d1d5bc26ad87bef99
|
|
| MD5 |
7e0b952f39f4cc45cb1da51c6b6e2fa2
|
|
| BLAKE2b-256 |
4fe3810ab40b72ec5409bc34044b22d94e2d70127ce6e0bb3baea8dbfe1e968d
|