Godtone (talk | contribs)
m My Python 3 code: improve reduce to add capability to set to specific range
Godtone (talk | contribs)
m My Python 3 code: fix fact_int edgecase
Line 542: Line 542:
f[-1] += 1
f[-1] += 1
n //= prime_idx(len(f)-1)
n //= prime_idx(len(f)-1)
if n==1: # to avoid bugs involving 1/1 being an empty string
return [0]
return f
return f
else:
else: