Skip to main content

A simple Turing machine for checking binary divisibility by 3

Project description

divisible_by_3_turing_machine

A simple Python package that implements a Turing machine to check if a binary number is divisible by 3.

🚀 Installation

pip install divisible-by-3-turing-machine

📦 Usage

from divisible_by_3_turing_machine import check_divisable_by_3

# Test cases
print(check_divisable_by_3("101"))  # True
print(check_divisable_by_3("100"))  # False

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

divisible_by_3_turing_machine-1.0.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

divisible_by_3_turing_machine-1.0.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file divisible_by_3_turing_machine-1.0.0.tar.gz.

File metadata

File hashes

Hashes for divisible_by_3_turing_machine-1.0.0.tar.gz
Algorithm Hash digest
SHA256 93c5e9a10a5c1ae809fd4b555771d7c5d3273f1c6f46e08c4a9c04f40cacad4d
MD5 6ae6955b561ca34aa4fdee3854ed6476
BLAKE2b-256 320aeeacc999ffec7d955aaf170655d194c38e8a47fa7df67686c325804e4fc3

See more details on using hashes here.

File details

Details for the file divisible_by_3_turing_machine-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for divisible_by_3_turing_machine-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfac3b75b47cad5d22621d19016a41a9b10a988f3c8096e50be8da15ace4f0fe
MD5 269226a4e43a99b656df77bcaa83e102
BLAKE2b-256 a73a2845faa494f533a460dc3a837a13ca87ee329df9ee9f86a4f7edc3ec3f0b

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