Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- divisores :: Int -> [Int]
- divisores n = [d | d <- [1..n], n `mod` d == 0]
- perfeito :: Int -> [Int]
- perfeito n = [t | t <- [1..n], t == (sum $ init $ divisores t)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement