Skip to content

Instantly share code, notes, and snippets.

@shieldsd
Created March 12, 2012 22:03
Show Gist options
  • Save shieldsd/2024999 to your computer and use it in GitHub Desktop.
Save shieldsd/2024999 to your computer and use it in GitHub Desktop.
Project Euler #1
print sum(n for n in range(1000) if n % 3 == 0 or n % 5 == 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment