Created
July 9, 2013 19:00
-
-
Save gigawhitlocks/5960206 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
show2d [x] = show x | |
show2d (x:xs) = show x ++ "\n" ++ show2d xs | |
multiples :: Integer -> [[Integer]] | |
multiples x = filter ((1 /=).(length)) $ | |
map (\y->filter ((0 ==).(`mod` y)) [1 .. x]) [1..x] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment