Skip to content
Snippets Groups Projects
Commit 87be16ee authored by Maikol Jhoneider Caballero Oviedo's avatar Maikol Jhoneider Caballero Oviedo
Browse files

Upload New File

parent 134efd2f
No related branches found
No related tags found
No related merge requests found
%% Cell type:code id:28409de5-3232-4f7a-89a0-a8c67c168bce tags:
``` python
def Numero_primos():
primos = []
inicio = 2
while inicio < 100:
primo = True
for i in range(2, int(inicio ** 1/2) + 1):
if inicio % i == 0:
primo = False
break
if primo:
primos.append(inicio)
inicio += 1
return primos
lista_primos = Numero_primos()
print(lista_primos)
```
%% Output
[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment