def find_y(x): if x in pp: return x ddd = mylib.gather_dividers(x) # print(x, ddd) dd = [get_f(y) for y in ddd] return max(dd)
def get_number_of_composite_dividers(a): if a == 1: return 1 n = 1 for dd in mylib.gather_dividers(a): n *= len(dd) + 1 return n
def get_square_dividers(c): ddd = mylib.gather_dividers(c) out = [] for dd in ddd: if len(dd) < 2: continue for i in range(len(dd) // 2): out.append(dd[0]) return out
def rad(n): out = 1 for e in (d[0] for d in mylib.gather_dividers(n)): out *= e return out
def make_cached_dividers(n): for x in range(1, n + 1): cached_dividers[x] = mylib.gather_dividers(x)