From d12fb76f3713bc3f86abf5a04f2558afe5ce8075 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Thu, 3 Sep 2020 10:12:11 -0500 Subject: Create test.py --- test.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test.py diff --git a/test.py b/test.py new file mode 100644 index 0000000..f266d49 --- /dev/null +++ b/test.py @@ -0,0 +1,18 @@ +# Python 3 + +def gcd(a, b): + if b > 0: return gcd(b, a % b) + else: return a + +print("test") + +N = 1000 +A = [] +for i in range(0, N): + A.append(i) + +ans = 0 +for i in A: + for j in A: + ans += gcd(i, j) +print(ans) -- cgit v1.2.3-70-g09d2