Skip to content

Commit e43bb5c

Browse files
Michael GalarnykMichael Galarnyk
authored andcommitted
Updated python prime number
1 parent f082a92 commit e43bb5c

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

Python_Basics/Prime_Numbers/PrimeNumbersPython.ipynb

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"cell_type": "markdown",
3535
"metadata": {},
3636
"source": [
37-
"## Method 1"
37+
"## Approach 1: For Loop"
3838
]
3939
},
4040
{
@@ -85,7 +85,7 @@
8585
"cell_type": "markdown",
8686
"metadata": {},
8787
"source": [
88-
"## Method 2"
88+
"## Approach 2: For Loop with Break"
8989
]
9090
},
9191
{
@@ -144,7 +144,7 @@
144144
"cell_type": "markdown",
145145
"metadata": {},
146146
"source": [
147-
"## Method 3"
147+
"## Approach 3: For Loop, Break, and Square Root"
148148
]
149149
},
150150
{
@@ -207,6 +207,22 @@
207207
"source": [
208208
"primes"
209209
]
210+
},
211+
{
212+
"cell_type": "markdown",
213+
"metadata": {},
214+
"source": [
215+
"## Approach 4: Sieve of Eratosthenes"
216+
]
217+
},
218+
{
219+
"cell_type": "code",
220+
"execution_count": null,
221+
"metadata": {
222+
"collapsed": true
223+
},
224+
"outputs": [],
225+
"source": []
210226
}
211227
],
212228
"metadata": {

0 commit comments

Comments
 (0)