Created
October 15, 2010 13:52
-
-
Save ClausPolanka/628209 to your computer and use it in GitHub Desktop.
The largest number under 100,000 that's divisible by 3829
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 :: (Integral a) => a | |
largestDivisible = head (filter p [100000,99999..]) | |
where p x = x `mod` 3829 == 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment