Narcissistic decimal number: Difference between revisions
→Haskell Reduced search (unordered digit combinations): simplified powerSum function
(→Haskell Reduced search (unordered digit combinations): simplified powerSum function) |
|||
Line 1,083:
narcissiOfLength :: Int -> [Int]
narcissiOfLength n = powerSum
where
isDaffodil n ds = (sort . digitList . powerSum
powerSum ::
powerSum
risingDigits 0 ns = ns
|