Created
June 3, 2015 19:48
-
-
Save cnorthwood/4ce0b2d8b909aa8a36c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nums = set(range(60, 70)) | |
for i in range(1, 36): | |
for j in range(i, 36): | |
if sum(range(i, j)) in nums: | |
nums.remove(sum(range(i, j))) | |
if sum(range(j, 36)) in nums: | |
nums.remove(sum(range(j, 36))) | |
print nums |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment