{"id":20509786,"url":"https://github.com/aminnairi/collatz","last_synced_at":"2026-06-06T19:31:13.054Z","repository":{"id":96373042,"uuid":"266520119","full_name":"aminnairi/collatz","owner":"aminnairi","description":"Compute \u0026 print the Collatz conjecture.","archived":false,"fork":false,"pushed_at":"2020-05-26T22:17:19.000Z","size":53,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-17T15:02:53.194Z","etag":null,"topics":["c","collatz","collatz-conjecture","makefile"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aminnairi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-05-24T10:44:49.000Z","updated_at":"2020-05-26T22:12:06.000Z","dependencies_parsed_at":"2023-12-23T06:30:14.832Z","dependency_job_id":null,"html_url":"https://github.com/aminnairi/collatz","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/aminnairi/collatz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminnairi%2Fcollatz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminnairi%2Fcollatz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminnairi%2Fcollatz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminnairi%2Fcollatz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aminnairi","download_url":"https://codeload.github.com/aminnairi/collatz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminnairi%2Fcollatz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33997732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-06T02:00:07.033Z","response_time":107,"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":["c","collatz","collatz-conjecture","makefile"],"created_at":"2024-11-15T20:26:28.244Z","updated_at":"2026-06-06T19:31:13.034Z","avatar_url":"https://github.com/aminnairi.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# collatz\n\n[![Compilation CI](https://github.com/aminnairi/collatz/workflows/Compilation%20CI/badge.svg)](https://github.com/aminnairi/collatz/actions?query=workflow%3A%22Compilation+CI%22)\n\nCommand line interface to compute \u0026 print the [Collatz conjecture](https://en.wikipedia.org/wiki/Collatz_conjecture).\n\n![Animated image showing an example usage of the program](https://i.ibb.co/hWcMS4M/collatz.gif)\n\n## :book: Requirements\n\n- UNIX-like operating system\n- Superuser privileges\n- [Git](https://git-scm.com/)\n- [GCC](https://gcc.gnu.org/)\n- [GNU C Library](https://www.gnu.org/software/libc/)\n- [GNU/Make](https://www.gnu.org/software/make/)\n- [Man](https://www.gnu.org/prep/standards/html_node/Man-Pages.html#Man-Pages)\n\n## :sparkles: Initialization\n\n```console\n$ git clone https://github.com/aminnairi/collatz.git\n$ cd collatz\n```\n\n## :hammer: Compilation\n\n```console\n$ make          # for the lazy ones\n$ make compile  # alternative\n```\n\n## :arrow_down: Installation\n\n```console\n$ make install\n```\n\n\u003e *Note: this will copy the program to the `/usr/local/bin` folder as well as copying the man page to the `/usr/local/man/man1` folder, requiring superuser access.*\n\n## :runner: Run\n\n```console\n$ collatz 15\n15 46 23 70 35 106 53 160 80 40 20 10 5 16 8 4 2 1\n$ collatz 5\n5 16 8 4 2 1\n```\n\n\u003e *`collatz` only accepts one integer number greater or equal to one.*\n\n## :thinking: Help\n\n```console\n$ man collatz\n```\n\n## :fire: Uninstallation\n\n```console\n$ make uninstall\n```\n\n\u003e *Note: this will remove the copy of the program from the `/usr/local/bin` folder as well as removing the man page from the `/usr/local/man/man1` folder, requiring superuser access.*\n\n## :recycle: Clean\n\n```console\n$ make clean\n```\n\nThis will remove the `objects` folder.\n\n## :wastebasket: Hard clean\n\n```console\n$ make mrproper\n```\n\nThis will remove the `objects` \u0026 `binaries` folder.\n\n## :question: FAQ\n\n### How can I change the compiler?\n\n```console\n$ vim makefile\n```\n\n```makefile\nCOMPILER=gcc\n```\n\n### How can I change the compiler's options?\n\n```console\n$ vim makefile\n```\n\n```console\nCOMPILER_FLAGS=-Wall -Wextra -Wpedantic -O3 -std=c18\n```\n\n### How can I change the linker?\n\n```console\n$ vim makefile\n```\n\n```makefile\nLINKER=gcc\n```\n\n### How can I change the linker's flags?\n\n```console\n$ vim makefile\n```\n\n```makefile\nLINKER_FLAGS=\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faminnairi%2Fcollatz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faminnairi%2Fcollatz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faminnairi%2Fcollatz/lists"}