Narcissistic decimal number: Difference between revisions
→Functional Python: Simplified predicate, extended domain of digitList to 0.
(→JS Reduced search: Extended domain of digitList to zero) |
(→Functional Python: Simplified predicate, extended domain of digitList to 0.) |
||
Line 3,335:
x for x in digitPowerSums(n)
if isDaffodil(n)(x)
Line 3,374:
ds = digitList(n)
return e == len(ds) and n == powerSum(e)(ds)
return lambda n:
Line 3,415:
list of single-digit integers.
'''
def go(x):
return
return go(n) if n else [0]
|