Skip to content

Instantly share code, notes, and snippets.

@franklin-e
Created August 30, 2010 17:08
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 franklin-e/557695 to your computer and use it in GitHub Desktop.
Save franklin-e/557695 to your computer and use it in GitHub Desktop.
from itertools import chain
print sum([j for j in chain.from_iterable([(i*i, i*i-i+1, i*i-2*i+2, i*i-3*i+3) for i in range(3,1112,2)])]) + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment