passagemath-database-cunningham 10.6.43__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of passagemath-database-cunningham might be problematic. Click here for more details.
- passagemath_database_cunningham/__init__.py +3 -0
- passagemath_database_cunningham-10.6.43.dist-info/METADATA +93 -0
- passagemath_database_cunningham-10.6.43.dist-info/METADATA.bak +94 -0
- passagemath_database_cunningham-10.6.43.dist-info/RECORD +10 -0
- passagemath_database_cunningham-10.6.43.dist-info/WHEEL +5 -0
- passagemath_database_cunningham-10.6.43.dist-info/top_level.txt +2 -0
- sage/all__sagemath_database_cunningham.py +1 -0
- sage/databases/all__sagemath_database_cunningham.py +7 -0
- sage/databases/cunningham_tables.py +54 -0
- sage_wheels/share/cunningham_tables/cunningham_prime_factors.sobj +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: passagemath-database-cunningham
|
|
3
|
+
Version: 10.6.43
|
|
4
|
+
Summary: passagemath: List of the prime numbers occuring in the Cunningham table
|
|
5
|
+
Author-email: The Sage Developers <sage-support@googlegroups.com>
|
|
6
|
+
Maintainer: Matthias Köppe, passagemath contributors
|
|
7
|
+
License-Expression: GPL-2.0-or-later
|
|
8
|
+
Project-URL: release notes, https://github.com/passagemath/passagemath/releases
|
|
9
|
+
Project-URL: repo (upstream), https://github.com/sagemath/sage
|
|
10
|
+
Project-URL: repo, https://github.com/passagemath/passagemath
|
|
11
|
+
Project-URL: documentation, https://passagemath.org/docs/latest
|
|
12
|
+
Project-URL: homepage (upstream), https://www.sagemath.org
|
|
13
|
+
Project-URL: discourse, https://passagemath.discourse.group
|
|
14
|
+
Project-URL: tracker (upstream), https://github.com/sagemath/sage/issues
|
|
15
|
+
Project-URL: tracker, https://github.com/passagemath/passagemath/issues
|
|
16
|
+
Classifier: Development Status :: 6 - Mature
|
|
17
|
+
Classifier: Intended Audience :: Education
|
|
18
|
+
Classifier: Intended Audience :: Science/Research
|
|
19
|
+
Classifier: Operating System :: POSIX
|
|
20
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
21
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
22
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
28
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
29
|
+
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
30
|
+
Requires-Python: <3.15,>=3.10
|
|
31
|
+
Description-Content-Type: text/x-rst
|
|
32
|
+
Requires-Dist: passagemath-environment~=10.6.43.0
|
|
33
|
+
|
|
34
|
+
=========================================================================
|
|
35
|
+
passagemath: List of the prime numbers occuring in the Cunningham table
|
|
36
|
+
=========================================================================
|
|
37
|
+
|
|
38
|
+
`passagemath <https://github.com/passagemath/passagemath>`__ is open
|
|
39
|
+
source mathematical software in Python, released under the GNU General
|
|
40
|
+
Public Licence GPLv2+.
|
|
41
|
+
|
|
42
|
+
It is a fork of `SageMath <https://www.sagemath.org/>`__, which has been
|
|
43
|
+
developed 2005-2025 under the motto “Creating a Viable Open Source
|
|
44
|
+
Alternative to Magma, Maple, Mathematica, and MATLAB”.
|
|
45
|
+
|
|
46
|
+
The passagemath fork uses the motto "Creating a Free Passage Between the
|
|
47
|
+
Scientific Python Ecosystem and Mathematical Software Communities."
|
|
48
|
+
It was created in October 2024 with the following goals:
|
|
49
|
+
|
|
50
|
+
- providing modularized installation with pip,
|
|
51
|
+
- establishing first-class membership in the scientific Python
|
|
52
|
+
ecosystem,
|
|
53
|
+
- giving `clear attribution of upstream
|
|
54
|
+
projects <https://groups.google.com/g/sage-devel/c/6HO1HEtL1Fs/m/G002rPGpAAAJ>`__,
|
|
55
|
+
- providing independently usable Python interfaces to upstream
|
|
56
|
+
libraries,
|
|
57
|
+
- offering `platform portability and integration testing
|
|
58
|
+
services <https://github.com/passagemath/passagemath/issues/704>`__
|
|
59
|
+
to upstream projects,
|
|
60
|
+
- inviting collaborations with upstream projects,
|
|
61
|
+
- `building a professional, respectful, inclusive
|
|
62
|
+
community <https://groups.google.com/g/sage-devel/c/xBzaINHWwUQ>`__,
|
|
63
|
+
- `empowering Sage users to participate in the scientific Python ecosystem
|
|
64
|
+
<https://github.com/passagemath/passagemath/issues/248>`__ by publishing packages,
|
|
65
|
+
- developing a port to `Pyodide <https://pyodide.org/en/stable/>`__ for
|
|
66
|
+
serverless deployment with Javascript,
|
|
67
|
+
- developing a native Windows port.
|
|
68
|
+
|
|
69
|
+
`Full documentation <https://passagemath.org/docs/latest/html/en/index.html>`__ is
|
|
70
|
+
available online.
|
|
71
|
+
|
|
72
|
+
passagemath attempts to support and provides binary wheels suitable for
|
|
73
|
+
all major Linux distributions and recent versions of macOS.
|
|
74
|
+
|
|
75
|
+
Binary wheels for native Windows (x86_64) are are available for a subset of
|
|
76
|
+
the passagemath distributions. Use of the full functionality of passagemath
|
|
77
|
+
on Windows currently requires the use of Windows Subsystem for Linux (WSL)
|
|
78
|
+
or virtualization.
|
|
79
|
+
|
|
80
|
+
The supported Python versions in the passagemath 10.6.x series are 3.10.x-3.14.x.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
About this pip-installable distribution package
|
|
84
|
+
-----------------------------------------------
|
|
85
|
+
|
|
86
|
+
This pip-installable distribution ``passagemath-database-cunningham`` is a
|
|
87
|
+
distribution of the list of the prime numbers occuring in the Cunningham table.
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
What is included
|
|
91
|
+
----------------
|
|
92
|
+
|
|
93
|
+
- Wheels on PyPI include the cunningham_tables files
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: passagemath-database-cunningham
|
|
3
|
+
Version: 10.6.43
|
|
4
|
+
Summary: passagemath: List of the prime numbers occuring in the Cunningham table
|
|
5
|
+
Author-email: The Sage Developers <sage-support@googlegroups.com>
|
|
6
|
+
Maintainer: Matthias Köppe, passagemath contributors
|
|
7
|
+
License-Expression: GPL-2.0-or-later
|
|
8
|
+
Project-URL: release notes, https://github.com/passagemath/passagemath/releases
|
|
9
|
+
Project-URL: repo (upstream), https://github.com/sagemath/sage
|
|
10
|
+
Project-URL: repo, https://github.com/passagemath/passagemath
|
|
11
|
+
Project-URL: documentation, https://passagemath.org/docs/latest
|
|
12
|
+
Project-URL: homepage (upstream), https://www.sagemath.org
|
|
13
|
+
Project-URL: discourse, https://passagemath.discourse.group
|
|
14
|
+
Project-URL: tracker (upstream), https://github.com/sagemath/sage/issues
|
|
15
|
+
Project-URL: tracker, https://github.com/passagemath/passagemath/issues
|
|
16
|
+
Classifier: Development Status :: 6 - Mature
|
|
17
|
+
Classifier: Intended Audience :: Education
|
|
18
|
+
Classifier: Intended Audience :: Science/Research
|
|
19
|
+
Classifier: Operating System :: POSIX
|
|
20
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
21
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
22
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
28
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
29
|
+
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
30
|
+
Requires-Python: <3.15,>=3.10
|
|
31
|
+
Description-Content-Type: text/x-rst
|
|
32
|
+
Requires-Dist: passagemath-conf~=10.6.43.0; sys_platform != "win32"
|
|
33
|
+
Requires-Dist: passagemath-environment~=10.6.43.0
|
|
34
|
+
|
|
35
|
+
=========================================================================
|
|
36
|
+
passagemath: List of the prime numbers occuring in the Cunningham table
|
|
37
|
+
=========================================================================
|
|
38
|
+
|
|
39
|
+
`passagemath <https://github.com/passagemath/passagemath>`__ is open
|
|
40
|
+
source mathematical software in Python, released under the GNU General
|
|
41
|
+
Public Licence GPLv2+.
|
|
42
|
+
|
|
43
|
+
It is a fork of `SageMath <https://www.sagemath.org/>`__, which has been
|
|
44
|
+
developed 2005-2025 under the motto “Creating a Viable Open Source
|
|
45
|
+
Alternative to Magma, Maple, Mathematica, and MATLAB”.
|
|
46
|
+
|
|
47
|
+
The passagemath fork uses the motto "Creating a Free Passage Between the
|
|
48
|
+
Scientific Python Ecosystem and Mathematical Software Communities."
|
|
49
|
+
It was created in October 2024 with the following goals:
|
|
50
|
+
|
|
51
|
+
- providing modularized installation with pip,
|
|
52
|
+
- establishing first-class membership in the scientific Python
|
|
53
|
+
ecosystem,
|
|
54
|
+
- giving `clear attribution of upstream
|
|
55
|
+
projects <https://groups.google.com/g/sage-devel/c/6HO1HEtL1Fs/m/G002rPGpAAAJ>`__,
|
|
56
|
+
- providing independently usable Python interfaces to upstream
|
|
57
|
+
libraries,
|
|
58
|
+
- offering `platform portability and integration testing
|
|
59
|
+
services <https://github.com/passagemath/passagemath/issues/704>`__
|
|
60
|
+
to upstream projects,
|
|
61
|
+
- inviting collaborations with upstream projects,
|
|
62
|
+
- `building a professional, respectful, inclusive
|
|
63
|
+
community <https://groups.google.com/g/sage-devel/c/xBzaINHWwUQ>`__,
|
|
64
|
+
- `empowering Sage users to participate in the scientific Python ecosystem
|
|
65
|
+
<https://github.com/passagemath/passagemath/issues/248>`__ by publishing packages,
|
|
66
|
+
- developing a port to `Pyodide <https://pyodide.org/en/stable/>`__ for
|
|
67
|
+
serverless deployment with Javascript,
|
|
68
|
+
- developing a native Windows port.
|
|
69
|
+
|
|
70
|
+
`Full documentation <https://passagemath.org/docs/latest/html/en/index.html>`__ is
|
|
71
|
+
available online.
|
|
72
|
+
|
|
73
|
+
passagemath attempts to support and provides binary wheels suitable for
|
|
74
|
+
all major Linux distributions and recent versions of macOS.
|
|
75
|
+
|
|
76
|
+
Binary wheels for native Windows (x86_64) are are available for a subset of
|
|
77
|
+
the passagemath distributions. Use of the full functionality of passagemath
|
|
78
|
+
on Windows currently requires the use of Windows Subsystem for Linux (WSL)
|
|
79
|
+
or virtualization.
|
|
80
|
+
|
|
81
|
+
The supported Python versions in the passagemath 10.6.x series are 3.10.x-3.14.x.
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
About this pip-installable distribution package
|
|
85
|
+
-----------------------------------------------
|
|
86
|
+
|
|
87
|
+
This pip-installable distribution ``passagemath-database-cunningham`` is a
|
|
88
|
+
distribution of the list of the prime numbers occuring in the Cunningham table.
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
What is included
|
|
92
|
+
----------------
|
|
93
|
+
|
|
94
|
+
- Wheels on PyPI include the cunningham_tables files
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
passagemath_database_cunningham/__init__.py,sha256=p9Fnv2fpk77UOIleYbuW-WE2e_Dhk6WTlby-DfvqmkQ,112
|
|
2
|
+
sage/all__sagemath_database_cunningham.py,sha256=CoWbYl8ZEAk9nsWxuzJ4tO6y176wm2OuOdP0nKA6PGM,58
|
|
3
|
+
sage/databases/all__sagemath_database_cunningham.py,sha256=a0ffe6RHqSHSiYy5wwHKNGdeeL4PVdVuv252-ABu7vg,199
|
|
4
|
+
sage/databases/cunningham_tables.py,sha256=emYJJyWGodjEKuZRhe5NbnxXR50W6anz8sIHoEQzXKg,1699
|
|
5
|
+
sage_wheels/share/cunningham_tables/cunningham_prime_factors.sobj,sha256=BnHzdiKXdPh91ZVVG3XR20CwuEBdEwezSFSvB52sP1g,484967
|
|
6
|
+
passagemath_database_cunningham-10.6.43.dist-info/METADATA,sha256=Ng9J-xyPYP3kP63G2KnQztRHSiw_4K6SUyJga3SifwY,4347
|
|
7
|
+
passagemath_database_cunningham-10.6.43.dist-info/METADATA.bak,sha256=ZHwExai1eIR4c3hqmlLrCkMi3RAHzsXKJJue5-jf0WE,4415
|
|
8
|
+
passagemath_database_cunningham-10.6.43.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
9
|
+
passagemath_database_cunningham-10.6.43.dist-info/top_level.txt,sha256=C0VRdU5UOmaWpUuOffkFGjdSK4dxnCLgPK8LPzpV6O0,37
|
|
10
|
+
passagemath_database_cunningham-10.6.43.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# sage_setup: distribution = sagemath-database-cunningham
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# sage_setup: distribution = sagemath-database-cunningham
|
|
2
|
+
r"""
|
|
3
|
+
Cunningham tables
|
|
4
|
+
|
|
5
|
+
This module provides :func:`cunningham_prime_factors`, which lists the prime
|
|
6
|
+
numbers occurring in the factorization of numbers of type `b^n+1` or `b^n-1`
|
|
7
|
+
with `b \in \{2,3,5,6,7,10,11,12\}`. For an introduction to Cunningham prime
|
|
8
|
+
factors, see :wikipedia:`Cunningham_Project`. The data becomes available if you
|
|
9
|
+
install the optional :ref:`cunningham_tables <spkg_cunningham_tables>` package by
|
|
10
|
+
the command ::
|
|
11
|
+
|
|
12
|
+
sage -i cunningham_tables
|
|
13
|
+
|
|
14
|
+
AUTHORS:
|
|
15
|
+
|
|
16
|
+
- Yann Laigle-Chapuy (2009-10-18): initial version
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
import os
|
|
20
|
+
from sage.misc.cachefunc import cached_function
|
|
21
|
+
from sage.rings.integer import Integer
|
|
22
|
+
from sage.misc.persist import load
|
|
23
|
+
from sage.env import SAGE_SHARE
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@cached_function
|
|
27
|
+
def cunningham_prime_factors():
|
|
28
|
+
r"""
|
|
29
|
+
List of all the prime numbers occurring in the so called Cunningham table.
|
|
30
|
+
|
|
31
|
+
They occur in the factorization of numbers of type `b^n+1` or `b^n-1` with `b \in \{2,3,5,6,7,10,11,12\}`.
|
|
32
|
+
|
|
33
|
+
EXAMPLES::
|
|
34
|
+
|
|
35
|
+
sage: # optional - cunningham_tables
|
|
36
|
+
sage: from sage.databases.cunningham_tables import cunningham_prime_factors
|
|
37
|
+
sage: cunningham_prime_factors()
|
|
38
|
+
[2,
|
|
39
|
+
3,
|
|
40
|
+
5,
|
|
41
|
+
7,
|
|
42
|
+
11,
|
|
43
|
+
13,
|
|
44
|
+
17,
|
|
45
|
+
...
|
|
46
|
+
"""
|
|
47
|
+
file = os.path.join(SAGE_SHARE,'cunningham_tables','cunningham_prime_factors.sobj')
|
|
48
|
+
if os.path.exists(file):
|
|
49
|
+
return [Integer(_) for _ in load(file)]
|
|
50
|
+
else:
|
|
51
|
+
from warnings import warn
|
|
52
|
+
warn("You might consider installing the optional package for factoring Cunningham numbers"
|
|
53
|
+
" with the following command: ``sage -i cunningham_tables``")
|
|
54
|
+
return []
|
|
Binary file
|