Created
October 15, 2010 14:09
-
-
Save ClausPolanka/628239 to your computer and use it in GitHub Desktop.
The sum of all odd squares that are smaller than 10,000 in Haskell
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
sum (takeWhile (<10000) (filter odd (map (^2) [1..]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment