示例#1
0
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)
示例#2
0
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)
示例#3
0
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
示例#4
0
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
示例#5
0
 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
示例#6
0
 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
示例#7
0
def rad(n):
    out = 1
    for e in (d[0] for d in mylib.gather_dividers(n)):
        out *= e
    return out
示例#8
0
def make_cached_dividers(n):
    for x in range(1, n + 1):
        cached_dividers[x] = mylib.gather_dividers(x)
示例#9
0
def rad(n):
    out = 1
    for e in (d[0] for d in mylib.gather_dividers(n)):
        out *= e
    return out