Skip to main content

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 durch 99: {dv.by_99(12375)}") # True (1+23+75=99) print(f"1001 durch 7: {dv.by_7(1001)}") # True (100 - 21 = 98) print(f"392 durch 98: {dv.by_98(392)}") # True (23 + 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

divisibility_library-0.1.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

divisibility_library-0.1.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file divisibility_library-0.1.1.tar.gz.

File metadata

  • Download URL: divisibility_library-0.1.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

Hashes for divisibility_library-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8acf0b8e73789fa7c74732409a579f27ac662bc8fc8bb457728a4a0f8eeea6e8
MD5 d06b534c87a943d68d7f8f8e6ad19461
BLAKE2b-256 210e06b789adaa3fcd129ddaa33a14ceef99ed375b1b7fcffe0168079fe82c78

See more details on using hashes here.

File details

Details for the file divisibility_library-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for divisibility_library-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 14c3e08c68c3cabdb4e87f27ae90b534dfc82f63339123bc64c6ec5cb7d3cb72
MD5 1a4452a3562ddf969815232d81a8590a
BLAKE2b-256 0f0e44c26495e5891f7ba0e30ad5131db96c7e7273fd5b0f6aefe6460f463b97

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