Narcissistic decimal number: Difference between revisions
Content added Content deleted
m (→Haskell - Reduced search (unordered digit combinations): (Moved main back to end of script)) |
|||
Line 1,083: | Line 1,083: | ||
narcissiOfLength :: Int -> [Int] |
narcissiOfLength :: Int -> [Int] |
||
narcissiOfLength n = |
narcissiOfLength n = |
||
⚫ | |||
where |
|||
in powerSum n <$> filter (isDaffodil n) (digitGroups n) |
|||
⚫ | |||
powerSum :: Int -> [Int] -> Int |
powerSum :: Int -> [Int] -> Int |