Skip to content

Instantly share code, notes, and snippets.

@shoya140
Created June 18, 2014 07:07
Show Gist options
  • Save shoya140/e288757758020893c639 to your computer and use it in GitHub Desktop.
Save shoya140/e288757758020893c639 to your computer and use it in GitHub Desktop.
1行で素数
print [p for p in range(2,100) if 0 not in [p % b for b in range(2,p)]]
@shoya140
Copy link
Author

atomのgist-itから投稿テスト

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment