We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7162c62 commit b2571a7Copy full SHA for b2571a7
prime_or_not.py
@@ -0,0 +1,11 @@
1
+num = raw_input("Enter a number:")
2
+
3
+num = int(num)
4
5
+for i in range(2, num):
6
+ if num%i == 0:
7
+ print("not prime.")
8
+ exit(0)
9
10
11
+print("prime.")
0 commit comments