Anonymous user
Increasing gaps between consecutive Niven numbers: Difference between revisions
Increasing gaps between consecutive Niven numbers (view source)
Revision as of 19:40, 25 April 2020
, 4 years ago→{{header|Haskell}}
No edit summary |
|||
Line 219:
import Control.Monad (guard)
import Text.Printf (printf)
import Data.List (intercalate, unfoldr)
import Data.List.Split (chunksOf)
Line 228:
pure n
where
digitSum = sum .
findGaps :: [(Int, Int, Int)]
Line 278:
126 6,292,149 88,996,914
</pre>
=={{header|J}}==
<lang J>
|