Abundant odd numbers: Difference between revisions

Content added Content deleted
m (→‎{{header|Haskell}}: Tidied the Data.Numbers.Primes version – pruned out redundant import.)
Line 2,877: Line 2,877:
divisors :: Int -> [Int]
divisors :: Int -> [Int]
divisors =
divisors =
foldr --
foldr
(flip ((<*>) . fmap (*)) . scanl (*) 1)
(flip ((<*>) . fmap (*)) . scanl (*) 1)
[1]
[1]