Skip to content

Commit c15706c

Browse files
authored
Create README.md
1 parent 7ee4cf3 commit c15706c

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

README.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
[![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)
2+
3+
**Find Primes is a library to find all kinds of primes.**
4+
5+
**Install**
6+
```shell
7+
pip install -U find-primes
8+
```
9+
**[Twin Primes](https://en.wikipedia.org/wiki/Twin_prime)**
10+
11+
A twin prime is a prime number that is either 2 less or 2 more than another prime number.
12+
13+
Example: Find all twin primes below 1000.
14+
```python
15+
from find_primes import find_twins
16+
print(find_twins(1000))
17+
```
18+
19+
**[Palindrome Primes](https://en.wikipedia.org/wiki/Palindromic_prime)**
20+
21+
A palindrome prime is a prime number that is also a palindrome number.
22+
23+
Example: Find all palindrome primes below 1000.
24+
```python
25+
from find_primes import find_palindromes
26+
print(find_palindromes(1000))
27+
```
28+
29+
**[Emirps](https://en.wikipedia.org/wiki/Emirp)**
30+
31+
An emirp is a prime number that results in a different prime when its decimal digits are reversed.
32+
33+
Example: Find all emirps below 1000.
34+
```python
35+
from find_primes import find_reverse
36+
print(find_reverse(1000))
37+
```
38+
39+
**[Primes in Arithmetic Progression](https://en.wikipedia.org/wiki/Primes_in_arithmetic_progression)**
40+
41+
Primes in arithmetic progression are any sequence of at least three prime numbers that are consecutive terms in an arithmetic progression.
42+
43+
Example: Find all primes in arithmetic progression below 1000.
44+
```python
45+
from find_primes import find_arithmetic_prime_progressions
46+
print(find_arithmetic_prime_progressions(100))
47+
```
48+
49+
**[Mersenne Primes](https://en.wikipedia.org/wiki/Mersenne_prime)**
50+
51+
A mersenne prime is a prime number that is one less than a power of two.
52+
53+
Example: Find all mersenne primes below 600000.
54+
```python
55+
from find_primes import find_mersenne_primes
56+
print(find_mersenne_primes(600000))
57+
```
58+
59+
**[Fermat Pseudoprimes](https://en.wikipedia.org/wiki/Fermat_pseudoprime)**
60+
61+
A fermat pseudoprime is a pseudoprime that satisfies fermat's little theorem.
62+
63+
Example: Find all fermat pseudoprimes below 1000.
64+
```python
65+
from find_primes import find_fermat_pseudoprime
66+
print(find_fermat_pseudoprime(1000))
67+
```

0 commit comments

Comments
 (0)