{"id":17305913,"url":"https://github.com/engossoftware/palindronum","last_synced_at":"2026-02-02T03:01:18.068Z","repository":{"id":204524224,"uuid":"712073905","full_name":"EngosSoftware/palindronum","owner":"EngosSoftware","description":"Number palindromes","archived":false,"fork":false,"pushed_at":"2024-04-23T12:58:18.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-22T16:49:19.487Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/EngosSoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2023-10-30T18:31:55.000Z","updated_at":"2024-04-23T13:00:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff0802d6-638d-4c04-a4a9-bb25d50ab239","html_url":"https://github.com/EngosSoftware/palindronum","commit_stats":null,"previous_names":["wisbery/palindronum","dariuszdepta/palindronum","engossoftware/palindronum"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EngosSoftware/palindronum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EngosSoftware%2Fpalindronum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EngosSoftware%2Fpalindronum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EngosSoftware%2Fpalindronum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EngosSoftware%2Fpalindronum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EngosSoftware","download_url":"https://codeload.github.com/EngosSoftware/palindronum/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EngosSoftware%2Fpalindronum/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29002625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T01:32:03.847Z","status":"online","status_checked_at":"2026-02-02T02:00:07.448Z","response_time":58,"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":[],"created_at":"2024-10-15T11:57:02.825Z","updated_at":"2026-02-02T03:01:18.045Z","avatar_url":"https://github.com/EngosSoftware.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Crates.io][crates-badge]][crates-url]\n[![MIT licensed][mit-badge]][mit-license-url]\n[![Apache 2.0 licensed][apache-badge]][apache-license-url]\n[![Contributor Covenant][cc-badge]][cc-url]\n\n[crates-badge]: https://img.shields.io/crates/v/palindronum.svg\n\n[crates-url]: https://crates.io/crates/palindronum\n\n[mit-badge]: https://img.shields.io/badge/License-MIT-blue.svg\n\n[mit-url]: https://opensource.org/licenses/MIT\n\n[mit-license-url]: https://github.com/EngosSoftware/palindronum/blob/main/LICENSE-MIT\n\n[apache-badge]: https://img.shields.io/badge/License-Apache%202.0-blue.svg\n\n[apache-url]: https://www.apache.org/licenses/LICENSE-2.0\n\n[apache-license-url]: https://github.com/EngosSoftware/palindronum/blob/main/LICENSE\n\n[apache-notice-url]: https://github.com/EngosSoftware/palindronum/blob/main/NOTICE\n\n[cc-badge]: https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg\n\n[cc-url]: https://github.com/EngosSoftware/palindronum/blob/main/CODE_OF_CONDUCT.md\n\n# Number palindromes\n\nA palindrome is a number that is the same when the digits are reversed.\nFor example, 121, 2332, and 6 are all palindromes.\nBut 10 is not a palindrome (since leading zeroes are not allowed).\n0 is treated as a palindrome.\n\nTo check if a number is a palindrome, use **is_palindrome** function, e.g.:\n\n```rust\n let x = 123; // no, this is not a palindrome\n let is_palindrome = palindronum::is_palindrome(x);\n println!(\"{x} is a palindrome: {is_palindrome}\");\n```\n output:\n\n```text\n 123 is a palindrome: false\n```\n\n```rust\n let x = 121; // yes, this is a palindrome\n let is_palindrome = palindronum::is_palindrome(x);\n println!(\"{x} is a palindrome: {is_palindrome}\");\n\n```\n output:\n\n```text\n 121 is a palindrome: true\n```\n\n To generate first _n_ palindromes, use **first_n_palindromes** function, e.g.:\n\n ```rust\n let first_10_palindromes = palindronum::first_n_palindromes(10);\n for x in first_10_palindromes {\n   println!(\"{x:2} is a palindrome\");\n }\n ```\n output:\n\n```text\n  1 is a palindrome\n  2 is a palindrome\n  3 is a palindrome\n  4 is a palindrome\n  5 is a palindrome\n  6 is a palindrome\n  7 is a palindrome\n  8 is a palindrome\n  9 is a palindrome\n 11 is a palindrome\n```\n\n## License\n\nLicensed under either of\n\n- [MIT license][mit-url] (see [LICENSE-MIT][mit-license-url]) or\n- [Apache License, Version 2.0][apache-url] (see [LICENSE][apache-license-url] and [NOTICE][apache-notice-url])\n\nat your option.\n\n## Contribution\n\nAny contributions to [palindronum](https://github.com/EngosSoftware/palindronum) are greatly appreciated.\nAll contributions intentionally submitted for inclusion in the work by you,\nshall be dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengossoftware%2Fpalindronum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fengossoftware%2Fpalindronum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengossoftware%2Fpalindronum/lists"}