def _antidivisors(n):

    for d in _divisors(n):
        y = 2*d
        if n > y and n % y:
            yield y
    for d in _divisors(2*n-1):
        if n > d >= 2 and n % d:
            yield d
    for d in _divisors(2*n+1):
        if n > d >= 2 and n % d:
            yield d
Generic numeric serialization.
dataset/ETHPy150Open sympy/sympy/sympy/ntheory/factor_.py/_antidivisors--crossover with--dataset/ETHPy150Open jek/flatland/flatland/schema/scalars.py/Number.serialize