Skip to content

Instantly share code, notes, and snippets.

@serverhorror
Created April 3, 2014 17:02
Show Gist options
  • Select an option

  • Save serverhorror/9958493 to your computer and use it in GitHub Desktop.

Select an option

Save serverhorror/9958493 to your computer and use it in GitHub Desktop.
def test(n):
if n%3==0: return True
if n%5==0: return True
return False
sum(filter(test, range(1000)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment