Skip to content

Instantly share code, notes, and snippets.

@daiksy
Created November 13, 2012 14:36
Show Gist options
  • Save daiksy/4066048 to your computer and use it in GitHub Desktop.
Save daiksy/4066048 to your computer and use it in GitHub Desktop.
Project Euler Problem 1 by Haslell
/**
* http://projecteuler.net/problem=1
* http://odz.sakura.ne.jp/projecteuler/index.php?cmd=read&page=Problem%201
*/
sum $ filter (\x -> mod x 3 == 0 || mod x 5 == 0) [1 .. 999]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment