Skip to content
Snippets Groups Projects
Commit f48520b9 authored by Donovan Paul Seijas Polo's avatar Donovan Paul Seijas Polo
Browse files

Delete numeros_primos.ipynb

parent 26fc5666
No related branches found
No related tags found
No related merge requests found
%% Cell type:code id: tags:
``` python
y = 0
for i in range(1, 151):
for j in range(1, i+1):
if i%j == 0:
y += 1
if y == 2:
print(i)
y = 0
```
%% 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: tags:
``` python
def primos(a,b):
for a in range(1,150+1):
for b in range(a):
if a%b!=0:
print(a)
if a%b==0:
break
```
%% Cell type:code id: 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