{"id":24312827,"url":"https://github.com/amir13872/modulo-magic","last_synced_at":"2025-09-08T15:48:45.238Z","repository":{"id":252517311,"uuid":"840663305","full_name":"amir13872/Modulo-Magic","owner":"amir13872","description":"This Python script is designed to interact with users, allowing them to find numbers within a specified range that are divisible by a list of user-provided divisors. It also calculates and displays the sum of these divisible numbers.","archived":false,"fork":false,"pushed_at":"2024-08-10T11:08:30.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-02T02:57:06.436Z","etag":null,"topics":["divisor-list","python-functions","python-signal-module","range-validation","signal-handling"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amir13872.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-10T09:56:23.000Z","updated_at":"2025-04-15T08:59:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"af335a4d-96a7-4744-865f-c0b29290f2f7","html_url":"https://github.com/amir13872/Modulo-Magic","commit_stats":null,"previous_names":["amir13872/modulo-magic"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amir13872/Modulo-Magic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amir13872%2FModulo-Magic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amir13872%2FModulo-Magic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amir13872%2FModulo-Magic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amir13872%2FModulo-Magic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amir13872","download_url":"https://codeload.github.com/amir13872/Modulo-Magic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amir13872%2FModulo-Magic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274209679,"owners_count":25241788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["divisor-list","python-functions","python-signal-module","range-validation","signal-handling"],"created_at":"2025-01-17T08:30:25.777Z","updated_at":"2025-09-08T15:48:45.201Z","avatar_url":"https://github.com/amir13872.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Modulo-Magic\nThe Divisibility Range Tool is a Python program that identifies numbers divisible by 3 or 5 within a given range, calculates their sum, and retrieves the last few elements from the list. It ensures valid input and provides a clear, efficient way to analyze numerical divisibility.\n# Modulo Magic\n\n**Modulo Magic** is a Python application that finds numbers within a specified range that are divisible by any of a list of user-defined divisors. It also calculates the sum of these numbers and provides additional insights such as the last three numbers divisible by the given divisors.\n\n## Features\n\n- **Find Divisible Numbers**: Identifies numbers in a given range that are divisible by any of the user-specified divisors.\n- **Sum Calculation**: Computes the sum of all numbers that meet the divisibility criteria.\n- **Last N Numbers**: Returns the last few numbers that are divisible by the specified divisors.\n- **Interrupt Handling**: Gracefully handles program interruption (e.g., via `Ctrl+C`).\n\n## Installation\n\nEnsure you have Python installed on your system. This project requires Python 3.6 or higher.\n\nNo additional packages are required.\n\n## Usage\n\n### Input Range\n\nYou will be prompted to enter the start and end of the range. Enter valid integers to specify the range.\n\n### Input Divisors\n\nEnter the divisors one by one. Type `done` when you have finished entering all divisors.\n\n### View Results\n\nThe program will display:\n\n- The count of numbers divisible by the specified divisors.\n- The list of these numbers.\n- The last three numbers divisible by the divisors.\n- The sum of these numbers.\n\n### Exit the Program\n\nYou can exit the program anytime by pressing `Ctrl+C`.\n\n## Example\n\n```plaintext\nPlease enter the start of the range: 10\nPlease enter the end of the range: 50\nEnter the divisors (enter 'done' to finish):\nEnter a divisor: 3\nEnter a divisor: 5\nEnter a divisor: done\n\nIn the range [10, 50], there are 18 numbers divisible by 3, 5.\n\nThese numbers are:\n15, 18, 20, 21, 24, 25, 27, 30, 33, 35, 36, 39, 40, 42, 45, 48, 50\n\nThe last three numbers divisible by 3, 5 are: 36, 39, 40\nThe sum of all numbers divisible by 3, 5 in this range is: 663\n```\n## Contributing\nContributions are welcome! If you have suggestions or improvements, please feel free to submit a pull request.\n\n## Contact\nFor any questions or support, please contact mahnaznamani007@gmail.com .\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famir13872%2Fmodulo-magic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famir13872%2Fmodulo-magic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famir13872%2Fmodulo-magic/lists"}