Untitled

user_8840555 avatar
user_8840555
python
06/13/2023 4:21 PM
336 B
18
Indexable
import sys
from functools import lru_cache

sys.setrecursionlimit(10000)

@lru_cache
def f(a, b):
    if b == 0:
        return a
    if b > 0 or b < 0:
        return f(b, a % b)


print(f(2 ** 12048548456666, 525727587345735375 ** 44))
Editor is loading...