Anonymous user
Perfect numbers: Difference between revisions
→{{header|Haskell}}: split a sequence of 'n' and '=' into two lines, for clarity
No edit summary |
(→{{header|Haskell}}: split a sequence of 'n' and '=' into two lines, for clarity) |
||
Line 663:
=={{header|Haskell}}==
<lang haskell>
n == sum [i | i <- [1..n-1], n `mod` i == 0]</lang>
Create a list of known perfects:
|