Skip to content

Instantly share code, notes, and snippets.

@cnorthwood
Created June 3, 2015 19:48
Show Gist options
  • Save cnorthwood/4ce0b2d8b909aa8a36c4 to your computer and use it in GitHub Desktop.
Save cnorthwood/4ce0b2d8b909aa8a36c4 to your computer and use it in GitHub Desktop.
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