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 215ed06 commit 94a9cf2Copy full SHA for 94a9cf2
is_prime.py
@@ -0,0 +1,6 @@
1
+def is_prime(num: int) -> bool:
2
+ '''this function returns True if there is a prime number, else returns False'''
3
+ for i in range(2, int(num**0.5)+1):
4
+ if num%i==0:
5
+ return False
6
+ return True
0 commit comments