crypto-hack/maths/euclidAlgo.py
2020-04-24 16:04:28 +10:00

15 lines
211 B
Python

def Euclid(a, b):
if a < b:
tmp = a
a = b
b = tmp
r = a%b
if r == 0:
return b
return Euclid(b, r)
def extendedEuclid(a, b):
pass
print(Euclid(66528, 52920))