{"id":20917248,"url":"https://github.com/c1m50c/twin-primes","last_synced_at":"2026-05-22T07:35:39.603Z","repository":{"id":137446648,"uuid":"418257887","full_name":"c1m50c/twin-primes","owner":"c1m50c","description":"Repository based on a Computerphile video, \"Infinite Data Structures: To Infinity \u0026 Beyond!\"","archived":false,"fork":false,"pushed_at":"2021-10-17T21:39:49.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-30T14:42:58.034Z","etag":null,"topics":["computerphile","haskell","lazy-evaluation","mit-license","prime-numbers"],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/c1m50c.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2021-10-17T21:17:27.000Z","updated_at":"2021-10-28T01:37:33.000Z","dependencies_parsed_at":"2024-04-19T02:01:12.511Z","dependency_job_id":null,"html_url":"https://github.com/c1m50c/twin-primes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/c1m50c/twin-primes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c1m50c%2Ftwin-primes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c1m50c%2Ftwin-primes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c1m50c%2Ftwin-primes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c1m50c%2Ftwin-primes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c1m50c","download_url":"https://codeload.github.com/c1m50c/twin-primes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c1m50c%2Ftwin-primes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33333552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T12:23:38.849Z","status":"online","status_checked_at":"2026-05-22T02:00:06.671Z","response_time":265,"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":["computerphile","haskell","lazy-evaluation","mit-license","prime-numbers"],"created_at":"2024-11-18T16:31:25.840Z","updated_at":"2026-05-22T07:35:39.572Z","avatar_url":"https://github.com/c1m50c.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **twin-primes**\nBased on a \u003ca href=\"https://www.youtube.com/watch?v=bnRNiE_OVWA\"\u003eComputerphile\u003c/a\u003e video,\n\u003ca href=\"https://www.youtube.com/watch?v=bnRNiE_OVWA\"\u003e\"Infinite Data Structures: To Infinity \u0026 Beyond!\"\u003c/a\u003e.\n\n## How it works\nIt works based on the lazyness of Haskell and infinite lists. We calculate all primes with the \u003ca href=\"https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes\"\u003eSieve of Eratosthenes Algorithm\u003c/a\u003e, then loop over the primes for twins.\n\n## Running\nFirst install \u003ca href=\"https://www.haskell.org/\"\u003eHaskell\u003c/a\u003e, and then run the following commands within a terminal.\n```bash\n$ cd twin-primes # Change directory to `twin-primes`\n$ cabal run # Compile and run the application.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc1m50c%2Ftwin-primes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc1m50c%2Ftwin-primes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc1m50c%2Ftwin-primes/lists"}