summaryrefslogtreecommitdiff
path: root/progs/a489.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a489.py')
-rw-r--r--progs/a489.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/a489.py b/progs/a489.py
new file mode 100644
index 0000000..ac17fc0
--- /dev/null
+++ b/progs/a489.py
@@ -0,0 +1,6 @@
+def sum(a,b):
+ sum = 0
+ for i in range (1,min(a,b)):
+ if (a % i == 0 and b % i == 0):
+ sum += i
+ return sum \ No newline at end of file