{"id":19214865,"url":"https://github.com/evanpacini/collatz","last_synced_at":"2026-05-16T11:32:10.337Z","repository":{"id":155391652,"uuid":"478456659","full_name":"evanpacini/collatz","owner":"evanpacini","description":"C++ and Python programs to analyse the Collatz conjecture.","archived":false,"fork":false,"pushed_at":"2022-04-06T07:47:45.000Z","size":8021,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-25T02:59:45.954Z","etag":null,"topics":["collatz","collatz-conjecture","cpp","mathematics","maths","python","python3"],"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/evanpacini.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":"2022-04-06T07:47:38.000Z","updated_at":"2022-04-20T07:13:24.000Z","dependencies_parsed_at":"2023-05-31T21:16:14.094Z","dependency_job_id":null,"html_url":"https://github.com/evanpacini/collatz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/evanpacini/collatz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanpacini%2Fcollatz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanpacini%2Fcollatz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanpacini%2Fcollatz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanpacini%2Fcollatz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evanpacini","download_url":"https://codeload.github.com/evanpacini/collatz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanpacini%2Fcollatz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278734407,"owners_count":26036404,"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-10-07T02:00:06.786Z","response_time":59,"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":["collatz","collatz-conjecture","cpp","mathematics","maths","python","python3"],"created_at":"2024-11-09T14:11:41.595Z","updated_at":"2025-10-07T06:52:25.656Z","avatar_url":"https://github.com/evanpacini.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Warning: As of the 6th of April 2022, this readme is not up to date!\n\n# Collatz\n\nMultiple C++ and and Python programs to analyse the Collatz problem.\n\n# Legacy README\n\n## Collatz\n\nC++ program that counts the number of steps to get back to 1 for all numbers up to N and saves it to a csv file.\nPython program that imports the csv file and plots the number of steps vs seed using matplotlib.\n\n### C++ program versions\n\n- collatzbasic.cpp (the first version I made, just calculates all sequences up to N, and returns the seed with the highest number of steps)\n- collatzmem.cpp (the same as the basic one, except it uses memoisation to significantly speed up the process)\n- collatzmemopt.cpp (uses memoisation and OpenMP multithreading to speed up, exports results to collatzsteps.csv)\n- collatzmemoptbin.cpp (same as previous except for small optimisations such as the use of bitwise operators)\n\nAttention: the collatzmemopt.cpp and collatzmemoptbin.cpp require OpenMP to work efficiently... This can be done by using:\n\n- `$ g++ -o collatz -fopenmp collatzmemoptbin.cpp` for GNU-based compilers\n- `$ icl -o collatz /MD /Qopenmp collatzmemoptbin.cpp` for Intel compilers\n\n### Python program\n\nWill import collatzsteps.csv and plot it with matplotlib. matplotlib and csv libraries are required and can be installed using:\n\n- `$ pip install matplotlib csv`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanpacini%2Fcollatz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevanpacini%2Fcollatz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanpacini%2Fcollatz/lists"}