Skip to content

Instantly share code, notes, and snippets.

@yuuki
Created May 17, 2012 04:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuuki/2716212 to your computer and use it in GitHub Desktop.
Save yuuki/2716212 to your computer and use it in GitHub Desktop.
プロジェクトオイラー
#!/usr/bin/env python
# -*- coding: utf-8 -*-
print(sum([i for i in range(1, 1000) if (i % 3 == 0) or (i % 5 == 0) ], 0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment