Package Info

python-pyprimes


Generate and test for prime numbers


Development/Languages/Python

The pyprimes package offers a variety of algorithms for generating prime numbers and fast primality tests, written in pure Python.

Prime numbers are those positive integers which are not divisible exactly by any number other than itself or one. Generating primes and testing for primality has been a favourite mathematical pastime for centuries, as well as of great practical importance for encrypting data.

pyprimes includes the following features:

- Produce prime numbers lazily, on demand.
- Effective algorithms including Sieve of Eratosthenes, Croft Spiral,
  and Wheel Factorisation.
- Efficiently test whether numbers are prime, using both deterministic
  (exact) and probabilistic primality tests.
- Examples of what *not* to do are provided, including naive trial
  division, Turner's algorithm, and primality testing using a
  regular expression.
- Factorise small numbers into the product of prime factors.
- Suitable for Python 2.4 through 3.x from one code base.

License: MIT
URL: http://code.google.com/p/pyprimes/

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.2.2a-bp156.3.1 info GA Release 2023-07-22 15 SP6
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-pyprimes
0.2.2a-bp155.2.10 info GA Release 2023-05-22 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-pyprimes
0.2.2a-bp154.1.23 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-pyprimes
0.2.2a-bp153.1.14 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-pyprimes
  • python3-pyprimes
0.2.2a-bp152.3.16 info GA Release 2020-04-17 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-pyprimes
  • python3-pyprimes
0.2.2a-bp151.1.1 info GA Release 2019-06-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-pyprimes
  • python3-pyprimes