Name | prime-math JSON |
Version |
1.0.0
JSON |
| download |
home_page | None |
Summary | None |
upload_time | 2024-12-18 04:41:47 |
maintainer | None |
docs_url | None |
author | None |
requires_python | None |
license | GPL-3 |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# prime-math
[![PyPI version](https://badge.fury.io/py/prime-math.svg)](https://badge.fury.io/py/prime-math)
`prime-math` is a Python package that provides a comprehensive set of tools for working with prime numbers. It includes efficient algorithms for prime number generation, primality testing, factorization, and more, making it ideal for mathematical computations and research.
## Features
- **Prime Number Generation**: Generate prime numbers within a specified range.
- **Primality Testing**: Check if a number is prime using efficient algorithms.
- **Factorization**: Decompose numbers into their prime factors.
- **Performance Optimized**: Built with performance in mind for handling large numbers.
## Installation
Install `prime-math` using pip:
```bash
pip install prime-math
```
## Usage
Here's a basic example to get started:
```python
from prime_math import PrimeUtils
# Check if a number is prime
is_prime = PrimeUtils.is_prime(29)
print(is_prime) # Outputs: True
# Generate prime numbers in a range
primes = PrimeUtils.generate_primes(10, 50)
print(primes) # Outputs: [11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47]
# Factorize a number
factors = PrimeUtils.factorize(100)
print(factors) # Outputs: [2, 2, 5, 5]
```
## Contributing
Contributions are welcome! To contribute:
1. Fork the repository.
2. Create a new branch for your feature: `git checkout -b feature-name`.
3. Commit your changes: `git commit -m 'Add some feature'`.
4. Push to the branch: `git push origin feature-name`.
5. Open a pull request.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Contact
If you have any questions or feedback, feel free to reach out to [Your Email or GitHub Profile].
Raw data
{
"_id": null,
"home_page": null,
"name": "prime-math",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "None",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/5b/e9/f7b523ef1f3ee780e57769fc65cdc02d2ffb0375bc73271a879136d621bd/prime_math-1.0.0.tar.gz",
"platform": null,
"description": "# prime-math\n\n[![PyPI version](https://badge.fury.io/py/prime-math.svg)](https://badge.fury.io/py/prime-math)\n\n`prime-math` is a Python package that provides a comprehensive set of tools for working with prime numbers. It includes efficient algorithms for prime number generation, primality testing, factorization, and more, making it ideal for mathematical computations and research.\n\n## Features\n\n- **Prime Number Generation**: Generate prime numbers within a specified range.\n- **Primality Testing**: Check if a number is prime using efficient algorithms.\n- **Factorization**: Decompose numbers into their prime factors.\n- **Performance Optimized**: Built with performance in mind for handling large numbers.\n\n## Installation\n\nInstall `prime-math` using pip:\n\n```bash\npip install prime-math\n```\n\n## Usage\n\nHere's a basic example to get started:\n\n```python\nfrom prime_math import PrimeUtils\n\n# Check if a number is prime\nis_prime = PrimeUtils.is_prime(29)\nprint(is_prime) # Outputs: True\n\n# Generate prime numbers in a range\nprimes = PrimeUtils.generate_primes(10, 50)\nprint(primes) # Outputs: [11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47]\n\n# Factorize a number\nfactors = PrimeUtils.factorize(100)\nprint(factors) # Outputs: [2, 2, 5, 5]\n```\n\n## Contributing\n\nContributions are welcome! To contribute:\n\n1. Fork the repository.\n2. Create a new branch for your feature: `git checkout -b feature-name`.\n3. Commit your changes: `git commit -m 'Add some feature'`.\n4. Push to the branch: `git push origin feature-name`.\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## Contact\n\nIf you have any questions or feedback, feel free to reach out to [Your Email or GitHub Profile].\n",
"bugtrack_url": null,
"license": "GPL-3",
"summary": null,
"version": "1.0.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5be9f7b523ef1f3ee780e57769fc65cdc02d2ffb0375bc73271a879136d621bd",
"md5": "4ce0b03ed223c083eb043eecd88e0fb4",
"sha256": "634cf69225c0a84acf768db9ff842f6abe055f568d21f63fa5d4f2657d390f43"
},
"downloads": -1,
"filename": "prime_math-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "4ce0b03ed223c083eb043eecd88e0fb4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 108623,
"upload_time": "2024-12-18T04:41:47",
"upload_time_iso_8601": "2024-12-18T04:41:47.176395Z",
"url": "https://files.pythonhosted.org/packages/5b/e9/f7b523ef1f3ee780e57769fc65cdc02d2ffb0375bc73271a879136d621bd/prime_math-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-18 04:41:47",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "prime-math"
}