Skip to main content

A few ad hoc numeric alogrithms: factors and primes.

Latest release 20220606: New intif(f): int(f) if that equals f, otherwise f.

Function factors(n)

Generator yielding the prime factors of n in order from lowest to highest.

Function intif(f: float)

Return int(f) if that equals f, otherwise f.

Function primes()

Generator yielding the primes in order starting at 2.

Release Log

Release 20220606: New intif(f): int(f) if that equals f, otherwise f.

Release 20190309: Superficial changes.

Release 20150311.2: Added RST doco for cs.numeric.

Release 20150311: Initial release with primes() and factors().

Metadata

Release files for cs.numeric 20220606

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

Source distribution (sdist)

Source distribution for cs.numeric 20220606
File Size Uploaded Provenance
cs.numeric-20220606.tar.gz 2.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cs.numeric 20220606
File Interpreter ABI Platform
cs.numeric-20220606-py3-none-any.whl Python 3 none any Details

Total release size: 4.7 kB

Release files / cs.numeric-20220606.tar.gz

Download URL cs.numeric-20220606.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ceb73ea4728333eed9dcf2fd795d9baf174f7e049f22a2e646a613edc9d17177
BLAKE2b-256 checksum
How to use checksums
b56eb391c13f6b9150b8cb749534644b10e5c96ab189b2afb199e0482e6a5681
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Release files / cs.numeric-20220606-py3-none-any.whl

Download URL cs.numeric-20220606-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d239b244a39e2537a512ffb352e607b11f17d80b8119d6d5b3be678d6704b1f1
BLAKE2b-256 checksum
How to use checksums
82fe5e516fd1cac449459c4acac3d502b6d218b9f45b4921aaeb4641056bbba0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Security for cs.numeric 20220606

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