We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2a78d4 commit 794d594Copy full SHA for 794d594
vishwajit1.py
@@ -0,0 +1,9 @@
1
+n = int(input())
2
+for i in range(1,n+1):
3
+ is_prime = True
4
+ for j in range (2,int(i**0.5+1)):
5
+ if i%j==0:
6
+ is_prime = False
7
+ break
8
+ if is_prime:
9
+ print(i,end=" ")
0 commit comments