Skip to content

Instantly share code, notes, and snippets.

@aiya000
Created May 5, 2014 12:21
Show Gist options
  • Save aiya000/11535254 to your computer and use it in GitHub Desktop.
Save aiya000/11535254 to your computer and use it in GitHub Desktop.
import Control.Applicative
main = putStrLn $ show divisorList
divisorList = a
where
max = 120
a = {-filter (<=max) $ -}(*) <$> [1..] <*> [3,5..]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment