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-2*1=98)

print(f"392 durch 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

divisibility_library-0.1.2.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.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: divisibility_library-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 b062f87692f462a62e667918b137802f56ae576deba3bc914a7d926ec38e9140
MD5 f7def298c09e5cde7fd7bb4ec63aa342
BLAKE2b-256 0c02a2af31971714ddd452ec446c850cd6d13d5c0ddfedc7d5a18237c662728e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for divisibility_library-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 63d25b130e51d5fd2b491b383ed502e54e7c569335ff319ce41ff325810f87ce
MD5 befd17ae505cb5a97f0c1a7dc41201e5
BLAKE2b-256 728a4ebead4ca6e7ce6c4f8ba4f9b748bca40655fb9a20cebf9e252dbd303854

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