Steady squares: Difference between revisions
Content added Content deleted
(→Python :: Functional: Updated accumulating version to use .endswith) |
|||
Line 967: | Line 967: | ||
ns = range(1, 1 + 10000) |
ns = range(1, 1 + 10000) |
||
xs = concatMap(steadyPair)(ns) |
xs = concatMap(steadyPair)(ns) |
||
w, w2 = |
w, w2 = (len(x) for x in xs[-1]) |
||
print([n for n in ns if steadyPair(n)]) |
print([n for n in ns if steadyPair(n)]) |