{"id":26933540,"url":"https://github.com/dustwinter/primechecker","last_synced_at":"2025-10-06T02:49:04.177Z","repository":{"id":261121891,"uuid":"857312278","full_name":"DustWinter/PrimeChecker","owner":"DustWinter","description":"A function that returns True if the input number is prime, False if not.","archived":false,"fork":false,"pushed_at":"2024-12-20T16:57:12.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T01:34:49.547Z","etag":null,"topics":["algorithm","algorithms","math","mathematical-programming","mathematics","prime-numbers"],"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/DustWinter.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-09-14T10:14:10.000Z","updated_at":"2024-12-20T16:57:15.000Z","dependencies_parsed_at":"2024-11-04T20:35:47.115Z","dependency_job_id":"8f3e07ca-c60f-416e-949a-edc1967cc8ad","html_url":"https://github.com/DustWinter/PrimeChecker","commit_stats":null,"previous_names":["corruptedspring/primechecker","elajbariyoussef/primechecker","dustwinter/primechecker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DustWinter%2FPrimeChecker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DustWinter%2FPrimeChecker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DustWinter%2FPrimeChecker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DustWinter%2FPrimeChecker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DustWinter","download_url":"https://codeload.github.com/DustWinter/PrimeChecker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246785456,"owners_count":20833498,"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":["algorithm","algorithms","math","mathematical-programming","mathematics","prime-numbers"],"created_at":"2025-04-02T09:19:31.546Z","updated_at":"2025-10-06T02:49:04.153Z","avatar_url":"https://github.com/DustWinter.png","language":"Python","readme":"# PrimeCheck1\n\nComplexity = √n\n\nA simple Python function that checks if an odd number is prime using a custom formula.\n\n## How to Use\n\n```python\nfrom PrimeCheck import PrimeCheck\n\nnumber = 17\nis_prime = PrimeCheck1(number)  # Returns True\n```\n\n## How it Works\n\nUses the formula: `(((n-1)/2)-a) / ((2*a)+1)`\n- If the formula ever results in a whole number, the input is not prime\n- Otherwise, the number is prime\n- \n# PrimeCheck2\n\nComplexity = √n\n\nA simple Python function that checks if an odd number is prime using a custom formula.\n\n## How to Use\n\n```python\nfrom PrimeCheck import PrimeCheck\n\nnumber = 17\nis_prime = PrimeCheck2(number)  # Returns True\n```\n\n## Updates\nThe floating-point inaccuracies in PrimeCheck1 are now avoided. Same logic reasoning as PrimeCheck1\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdustwinter%2Fprimechecker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdustwinter%2Fprimechecker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdustwinter%2Fprimechecker/lists"}