Skip to main content

A new library to handle all sorts of mathematical factors of a number. From finding sum of factors to finding prime factors. Number of built-in functions added for the library are: nfact() -> Finding the number of factors for the given number. Returns 'None' if there's no factor for the number else returns the number of factors. sfact() -> Finding the sum of factors for the given number. Returns -1 if there's no factor for the number else returns the sum of factors. fact() -> Gives the list of factors for the given number, returns -1 if there's no factor for the number. efact() -> Gives the list of even factors for the given number, returns -1 if there's no factor for the number. ofact() -> Gives the list of odd factors for the given number, returns -1 if there's no factor for the number. pfact() -> Gives the list of prime factors for the given number, returns -1 if there's no factor for the number. sum_efact() -> Returns the sum of even factors for the given number, returns -1 if there's no factor for the number. sum_ofact() -> Returns the sum of odd factors for the given number, returns -1 if there's no factor for the number. sum_pfact() -> Returns the sum of prime factors for the given number, returns -1 if there's no factor for the number. import factors.factors as f f.fact(10) -> [1, 2, 5, 10] (Output).

Metadata

Release files for math-factors 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for math-factors 1.0.2
File Interpreter ABI Platform
math_factors-1.0.2-py2.7.egg Legacy Egg format - - Details
math_factors-1.0.2-py2-none-any.whl Python 2 none any Details

Total release size: 5.1 kB

Release files / math_factors-1.0.2-py2.7.egg

Download URL math_factors-1.0.2-py2.7.egg
Size 1.6 kB
Tags Egg
SHA-256 checksum
How to use checksums
e850f23186ccedc3e15a09e13428a4df38537d869f2dfb669a67e63554bc8fe6
BLAKE2b-256 checksum
How to use checksums
f5d38f8ac5ee5608ec84db20647e01b9cd9a2f32db4fe8863573c28bbff8d4dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16

Release files / math_factors-1.0.2-py2-none-any.whl

Download URL math_factors-1.0.2-py2-none-any.whl
Size 3.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
a08ac4c57ece6311a21e7b30310261f78daef22254d74bfe306615ea5a6cd05b
BLAKE2b-256 checksum
How to use checksums
dc5f1e456179626a0e80ad2c666bbe0067a814be1b729be2b87b0ce015c8eb15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16

Security for math-factors 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page