Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Powers
- (
- powersSimpleSolution
- ) where
- import Data.List (nub)
- powersSimpleSolution :: Int -> Int
- powersSimpleSolution n = length (nub [(toInteger (a)) ^ (toInteger (b)) | a <- [1 .. n], b <- [1 .. n]])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement