23 Apr
2018
23 Apr
'18
11:56 p.m.
Sven R. Kunze wrote:
if (x - x_base) and gcd(x - x_base, n) > 1: return gcd(x - x_base, n)
and have the interpreter handle the optimization, or apply an lru_cache? ;-)
Problem is, there's no way to automatically tell whether the expressions involved have side effects that are being relied on. -- Greg