{"id":16295889,"url":"https://github.com/raklaptudirm/itp","last_synced_at":"2025-04-09T13:18:43.275Z","repository":{"id":37687238,"uuid":"504897366","full_name":"raklaptudirm/itp","owner":"raklaptudirm","description":"Generate beautiful Prime Numbers from Images","archived":false,"fork":false,"pushed_at":"2023-01-28T18:10:42.000Z","size":33,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T07:23:32.094Z","etag":null,"topics":["image-processing","prime-generator","prime-numbers"],"latest_commit_sha":null,"homepage":"https://laptudirm.com/x/itp","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raklaptudirm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-18T16:40:33.000Z","updated_at":"2023-01-10T07:56:17.000Z","dependencies_parsed_at":"2023-02-15T18:15:47.629Z","dependency_job_id":null,"html_url":"https://github.com/raklaptudirm/itp","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raklaptudirm%2Fitp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raklaptudirm%2Fitp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raklaptudirm%2Fitp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raklaptudirm%2Fitp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raklaptudirm","download_url":"https://codeload.github.com/raklaptudirm/itp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045270,"owners_count":21038557,"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","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":["image-processing","prime-generator","prime-numbers"],"created_at":"2024-10-10T20:20:11.507Z","updated_at":"2025-04-09T13:18:43.250Z","avatar_url":"https://github.com/raklaptudirm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003csamp\u003eitp\u003c/samp\u003e - Beautiful Prime Numbers from Images\n\n\u003csamp\u003eitp\u003c/samp\u003e is a command line tool to generate large prime numbers which look like any arbitrary image.\n\n\u003c!-- Preview --\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://gist.github.com/raklaptudirm/fc6fd8452fefc246951efca730e9e214\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/68542775/174952364-39ce9031-6ab0-4e7b-a15f-2665bdc88056.png\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\n### Installation and Usage\n\n```\ngo install laptudirm.com/x/itp@latest\nitp [image file]\n```\n\n### Working\n\n\u003csamp\u003eitp\u003c/samp\u003e finds primes which look similar to an image using the following steps:\n\n- \u003csamp\u003estep 1:\u003c/samp\u003e Convert the image into a number. Brightness chart is \"7772299408\".\n- \u003csamp\u003estep 2:\u003c/samp\u003e If last digit is even or 5 change it, otherwise number can't be a prime.\n- \u003csamp\u003estep 3:\u003c/samp\u003e If first digit is 0 change it. No redundant leading zeros allowed\n- \u003csamp\u003estep 4:\u003c/samp\u003e Check if number is prime. If it is a prime, print it and exit.\n- \u003csamp\u003estep 5:\u003c/samp\u003e If number is not prime, switch one of the digits with a similar one.\n- \u003csamp\u003estep 6:\u003c/samp\u003e Goto step 4.\n\n### References\n\n- https://github.com/TotalTechGeek/pictoprime\n- https://en.wikipedia.org/wiki/Baillie%E2%80%93PSW_primality_test\n- https://en.wikipedia.org/wiki/Miller%E2%80%93Rabin_primality_test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraklaptudirm%2Fitp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraklaptudirm%2Fitp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraklaptudirm%2Fitp/lists"}