Skip to content
Snippets Groups Projects
Commit 1fd4c605 authored by Elkin Mauricio Rincon Galvis's avatar Elkin Mauricio Rincon Galvis
Browse files

Subir nuevo archivo

parent f29f9f14
No related branches found
No related tags found
No related merge requests found
%% Cell type:code id:23316295-293d-4a51-8c88-c8439928f585 tags:
``` python
n = 150
primos = []
for num in range(2, n + 1):
for i in range(2, num):
if (num % i) == 0:
break
else:
primos.append(num)
```
%% Cell type:code id:fea3eed1-3ceb-4895-b360-ac0e61640e47 tags:
``` python
print(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, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149]
%% Cell type:code id:bd084711-0752-46b5-a6a3-c9cf50a4b4fa tags:
``` python
```
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