Skip to content

Instantly share code, notes, and snippets.

@bwesterb bwesterb/gist:4701471
Last active Dec 12, 2015

Embed
What would you like to do?
import struct
def f():
f = open('test')
s = f.read(1000000)
ret = 0
for i in xrange(len(s)/4):
ret = (ret + struct.unpack("i", s[4*i:4*i+4])[0]) % 6000
return ret
print f()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.