Skip to content

Instantly share code, notes, and snippets.

@shigemk2
Created January 21, 2015 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shigemk2/215fc93754ba9e051e36 to your computer and use it in GitHub Desktop.
Save shigemk2/215fc93754ba9e051e36 to your computer and use it in GitHub Desktop.
largestDivisible :: Integer
largestDivisible = head (filter p [100000,99999..])
where p x = x `mod` 50001 == 0
main = do
print $ largestDivisible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment