(limit)
return max(coffs, key=lambda x: coffs[x])
search for the best a, b coefficients for a quadratic func prime gen
search for the best a, b coefficients for a quadratic func prime gen
search for the best a b coefficients for a quadratic func prime gen
def search(limit):
    """search for the best a, b coefficients for a quadratic func prime gen"""
    coffs = {}
    for t in comb(range(-limit, limit + 1), 2):
        coffs[t] = max([eval_func(quadratic(a, b)) for a, b in [t, t[::-1]]])

    return max(coffs, key=lambda x: coffs[x])
def search ( limit ) : coffs = { } for t in comb ( range ( - limit , limit + 1 ) , 2 ) : coffs [ t ] = max ( [ eval_func ( quadratic ( a , b ) ) for a , b in [ t , t [ : : - 1 ] ] ] ) return max ( coffs , key = lambda x : coffs [ x ] )