Numbers with prime digits whose sum is 13: Difference between revisions

→‎{{header|Haskell}}: concatMap rather than (>
m (→‎{{header|Haskell}}: Slightly reduced one expression.)
(→‎{{header|Haskell}}: concatMap rather than (>)
Line 198:
[ fst nv
| 12 > snd nv ]
in ((,) . (>>=concatMap f) <*> (>>=concatMap g))
(((,) <*> sum) <$> ((<$> xs) . flip (<>) . return =<< primeDigits))
 
9,655

edits