Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit fc967a9

Browse files
authored
Add files via upload
1 parent 2786604 commit fc967a9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

6_smanum.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
lower = 1
3+
upper = 100000
4+
5+
6+
print("Prime numbers between",lower,"and",upper,"are:")
7+
8+
for num in range(lower,upper):
9+
10+
if num > 1:
11+
for i in range(2,num):
12+
if (num % i) == 0:
13+
break
14+
else:
15+
print(num)

0 commit comments

Comments
 (0)