summaryrefslogtreecommitdiff
path: root/test/3-2.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/3-2.py')
-rw-r--r--test/3-2.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/3-2.py b/test/3-2.py
new file mode 100644
index 0000000..417fbde
--- /dev/null
+++ b/test/3-2.py
@@ -0,0 +1,16 @@
+
+num = 29
+
+def prime_numBIS(div):
+ if (num >=1):
+ if (div*div <= num/2):
+ if (num % div) == 0:
+ return False
+ else:
+ return prime_numBIS(div+1)
+ else:
+ return True
+ else:
+ return False
+
+print(prime_numBIS(2))