{"id":17049959,"url":"https://github.com/huonw/primal","last_synced_at":"2025-05-16T13:07:29.156Z","repository":{"id":32150811,"uuid":"35723810","full_name":"huonw/primal","owner":"huonw","description":"primal puts raw power into prime numbers.","archived":false,"fork":false,"pushed_at":"2024-09-23T16:01:33.000Z","size":2687,"stargazers_count":116,"open_issues_count":9,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-15T00:05:37.432Z","etag":null,"topics":["prime-numbers","rust"],"latest_commit_sha":null,"homepage":"http://docs.rs/primal/","language":"Rust","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/huonw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2015-05-16T12:59:50.000Z","updated_at":"2025-03-27T05:13:49.000Z","dependencies_parsed_at":"2024-06-19T00:21:20.368Z","dependency_job_id":"1e2d2e5e-3ef4-4a7f-afd6-cee397e7c2eb","html_url":"https://github.com/huonw/primal","commit_stats":{"total_commits":303,"total_committers":10,"mean_commits":30.3,"dds":0.2805280528052805,"last_synced_commit":"fd09436cecf81fac48d7514bd50deb7818fd7bc1"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huonw%2Fprimal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huonw%2Fprimal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huonw%2Fprimal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huonw%2Fprimal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huonw","download_url":"https://codeload.github.com/huonw/primal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254535829,"owners_count":22087399,"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":["prime-numbers","rust"],"created_at":"2024-10-14T09:55:47.227Z","updated_at":"2025-05-16T13:07:29.117Z","avatar_url":"https://github.com/huonw.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# primal\n\n[![crates.io](https://img.shields.io/crates/v/primal.svg)](https://crates.io/crates/primal)\n[![documentation](https://docs.rs/primal/badge.svg)](https://docs.rs/primal)\n![minimum rustc 1.36](https://img.shields.io/badge/rustc-1.36+-red.svg)\n\n`primal` puts raw power into prime numbers.\n\nThis crates includes\n\n- optimised prime sieves\n- checking for primality\n- enumerating primes\n- factorising numbers\n- estimating upper and lower bounds for π(*n*) (the number of primes\n  below *n*) and *p\u003csub\u003ek\u003c/sub\u003e* (the \u003ci\u003ek\u003c/i\u003eth prime)\n\nThis uses a state-of-the-art cache-friendly Sieve of Eratosthenes\nto enumerate the primes up to some fixed bound (in a memory\nefficient manner), and then allows this cached information to be\nused for things like enumerating and counting primes.\n\n`primal` takes around 2.8 seconds and less than 3MB of RAM to\ncount the exact number of primes below 10\u003csup\u003e10\u003c/sup\u003e (455052511)\non the author's laptop (i7-3517U).\n\n[**Documentation**](http://docs.rs/primal/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuonw%2Fprimal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuonw%2Fprimal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuonw%2Fprimal/lists"}