Created
January 21, 2015 12:30
-
-
Save shigemk2/215fc93754ba9e051e36 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
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