Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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