Skip to content

Commit 8a001a9

Browse files
author
GUO Joanna
committed
Add files via upload
1 parent 402de56 commit 8a001a9

File tree

4 files changed

+52
-5
lines changed

4 files changed

+52
-5
lines changed

build/lib/find_primes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3180,7 +3180,7 @@ def test():
31803180
print(f'Time: {round(end_tm - start_tm, 12)} seconds.\n')
31813181

31823182
end_all = time()
3183-
print(f'Factor Test Time: {round(end_all - start_all, 12)} seconds.\n')
3183+
print(f'Factor Test Time: {round(end_all - start_all, 12)} seconds.')
31843184

31853185
def add_args():
31863186
'''
22.4 KB
Binary file not shown.

dist/find_primes-2.1.1.tar.gz

24.5 KB
Binary file not shown.

find_primes.egg-info/PKG-INFO

Lines changed: 51 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Metadata-Version: 2.1
22
Name: find-primes
3-
Version: 2.1.0
4-
Summary: A module for finding primes
3+
Version: 2.1.1
4+
Summary: A module for finding primes and finding factors of big numbers.
55
Home-page: https://github.com/git4robot/pypi_find_primes
66
Author: JamesJ
77
Author-email: GGJamesQQ@yeah.net
@@ -16,12 +16,19 @@ License-File: LICENSE
1616

1717
[![Downloads](https://static.pepy.tech/personalized-badge/find-primes?period=total&units=international_system&left_color=lightgrey&right_color=yellowgreen&left_text=Downloads)](https://pepy.tech/project/find-primes)
1818

19-
Find Primes is a library to find all kinds of primes.
19+
Find Primes is a library to find all kinds of primes and factors of big numbers.
2020

2121
**Install**
22+
23+
Stable Version:
24+
```shell
25+
pip install -U find-primes
26+
```
27+
Beta Version:
2228
```shell
23-
pip install --pre --upgrade find-primes
29+
pip install --pre -U find-primes
2430
```
31+
2532
**[Twin Primes](https://en.wikipedia.org/wiki/Twin_prime)**
2633

2734
A twin prime is a prime number that is either 2 less or 2 more than another prime number.
@@ -276,3 +283,43 @@ from find_primes import factor_mpqs
276283
print(factor_mpqs(2776889953055853600532696901))
277284
```
278285

286+
**[SIQS Method](https://www.rieselprime.de/ziki/Self-initializing_quadratic_sieve)**
287+
288+
The Self-initializing Quadratic Sieve (SIQS) method is a factorization method based on the Multiple Polynomial Quadratic Sieve (MPQS) method.
289+
290+
Example: Factor a big number.
291+
```python
292+
from find_primes import factor_siqs
293+
print(factor_siqs(3458280484189))
294+
```
295+
296+
**[Lenstra Elliptic-curve Method](https://en.wikipedia.org/wiki/Lenstra_elliptic-curve_factorization)**
297+
298+
The Lenstra Elliptic-curve method is a factorization method.
299+
300+
Example: Factor a big number.
301+
```python
302+
from find_primes import factor_lenstra
303+
print(factor_lenstra(2854159729781))
304+
```
305+
306+
**[Pollard p - 1 Method](https://en.wikipedia.org/wiki/Pollard%27s_p_%E2%88%92_1_algorithm)**
307+
308+
The Pollard p - 1 method is a factorization method.
309+
310+
Example: Factor a big number.
311+
```python
312+
from find_primes import factor_pollardpm1
313+
print(factor_pollardpm1(2854159729781))
314+
```
315+
316+
**[Williams p + 1 Method](https://en.wikipedia.org/wiki/Williams%27s_p_%2B_1_algorithm)**
317+
318+
The Williams p + 1 Method is a factorization method.
319+
320+
Example: Factor a big number.
321+
```python
322+
from find_primes import factor_williamspp1
323+
print(factor_williamspp1(2854159729781))
324+
```
325+

0 commit comments

Comments
 (0)