{"id":31714358,"url":"https://github.com/doctorlai/prime-factorization","last_synced_at":"2025-10-09T01:21:25.295Z","repository":{"id":310270624,"uuid":"1035166371","full_name":"DoctorLai/prime-factorization","owner":"DoctorLai","description":"Integer Prime Factorization","archived":false,"fork":false,"pushed_at":"2025-09-27T16:20:51.000Z","size":174,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-27T18:11:08.453Z","etag":null,"topics":["integers","math","numbers","prime","prime-factorization","tools"],"latest_commit_sha":null,"homepage":"https://doctorlai.github.io/prime-factorization/","language":"JavaScript","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/DoctorLai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"doctorlai","patreon":"doctorlai","buy_me_a_coffee":"y0BtG5R","thanks_dev":"doctorlai"}},"created_at":"2025-08-09T19:48:51.000Z","updated_at":"2025-08-18T09:19:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c21f536-a223-4ee2-a6f3-c170847decd3","html_url":"https://github.com/DoctorLai/prime-factorization","commit_stats":null,"previous_names":["doctorlai/prime-factorization"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DoctorLai/prime-factorization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DoctorLai%2Fprime-factorization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DoctorLai%2Fprime-factorization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DoctorLai%2Fprime-factorization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DoctorLai%2Fprime-factorization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DoctorLai","download_url":"https://codeload.github.com/DoctorLai/prime-factorization/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DoctorLai%2Fprime-factorization/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000725,"owners_count":26082894,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"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":["integers","math","numbers","prime","prime-factorization","tools"],"created_at":"2025-10-09T01:21:22.802Z","updated_at":"2025-10-09T01:21:25.290Z","avatar_url":"https://github.com/DoctorLai.png","language":"JavaScript","funding_links":["https://github.com/sponsors/doctorlai","https://patreon.com/doctorlai","https://buymeacoffee.com/y0BtG5R","https://thanks.dev/doctorlai"],"categories":[],"sub_categories":[],"readme":"# Prime Factorization App\n[![Prime Factorization (Built, Lint and Test)](https://github.com/DoctorLai/prime-factorization/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/DoctorLai/prime-factorization/actions/workflows/ci.yaml)\n\nA simple React web app that computes the prime factorization of any positive integer and displays it in a clean, styled format. It also lists all prime numbers up to 2000 for quick reference. The project supports dark mode, is fully tested with Vitest, and can be easily deployed to GitHub Pages.\n\n## Features\n\n- **Prime Factorization**: Enter any positive integer and see its prime factors in exponent form (e.g., \u003ccode\u003e24 =\u003e 2³ * 3\u003c/code\u003e).\n- **Prime Number List**: Displays all prime numbers up to 2000 for reference.\n- **Dark Mode**: Toggle between light and dark modes for better readability.\n- **Clean Result Display**: Factorization results are highlighted in a styled result box.\n- **Simple and Intuitive UI**: Just enter a number and click \"Factorize\".\n- **Deploy Easily**: \u003ccode\u003enpm run build\u003c/code\u003e and \u003ccode\u003enpm run deploy\u003c/code\u003e.\n\n## Live Demo\n\nThe live demo is deployed here:  \n- [GitHub Pages: Prime Factorization Tool](https://doctorlai.github.io/prime-factorization/)\n- Alternative Tool: [Integer Factorization to Prime Factors with API](https://helloacm.com/tools/factor/)\n\n\u003cimg alt=\"image\" src=\"https://github.com/user-attachments/assets/153265a2-7331-4098-a527-f2b58bcbcbe9\" /\u003e\n\n## Installation\n\nTo run the app locally:\n\n1. Clone the repository:  \n```bash\ngit clone https://github.com/doctorlai/prime-factorization.git  \ncd prime-factorization\n```\n\n2. Install dependencies:  \n```bash\nnpm install\n```\n\n3. Start the development server:  \n```bash\nnpm run dev\n```\n\n4. Run tests:  \n```bash\nnpm run test\n```\n\n5. Format code:  \nRun: \u003ccode\u003enpm run format\u003c/code\u003e to check code formatting and;\nRun: \u003ccode\u003enpm run format:fix\u003c/code\u003e to fix formatting automatically.\n\n6. Open [http://localhost:5173/prime-factorization/](http://localhost:5173/prime-factorization/) in your browser.\n\n## Usage\n1. Enter a **positive integer** in the input box.  \n2. The prime factorization will be displayed in a styled result box.  \n3. Scroll down to see all prime numbers up to 2000.  \n4. Toggle **Light/Dark Mode** with the 🌞/🌙 button.  \n\n## Contributing\n\nContributions are welcome!\n1. Fork the repository.  \n2. Create a feature branch:  \n```bash\ngit checkout -b feature-branch\n```\n\n3. Commit your changes:  \n```bash\ngit commit -am 'Add new feature'\n```\n\n4. Push to your fork:  \n```bash\ngit push origin feature-branch\n```\n\n5. Open a Pull Request.  \n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.\n\n## Documentation\n\nSee the [AI generated wiki](https://deepwiki.com/DoctorLai/prime-factorization) for more background.\n\n## Acknowledgments\n\n- Built with ❤️ by [@justyy](https://github.com/doctorlai)  \n- Initial boilerplate provided by ChatGPT.\n- If you found this tool useful, consider buying me a [coffee](https://justyy.com/out/bmc) ☕ Thank you!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoctorlai%2Fprime-factorization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoctorlai%2Fprime-factorization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoctorlai%2Fprime-factorization/lists"}