In the movie “Ex Machina” (which is really great BTW) this code can briefly be seen:
#BlueBook code decryption
import sys
def sieve(n):
x = [1] * n
x[1] = 0
for i in range(2,n/2):
j = 2 * i
while j < n:
x[j]=0
j = j+i
return x def prime(n,x):
i = 1
j = 1
while j <= n:
if x[i] == 1:
j = j + 1
i = i + 1
return i - 1
x=sieve(10000)
code = [1206,301,384,5]
key =[1,1,2,2,] sys.stdout.write(“”.join(chr(i) for i in [73,83,66,78,32,61,32]))
for i in range (0,4):
sys.stdout.write(str(prime(code[i],x)-key[i]))
Which when you run with python2.7 you get the following:
ISBN = 9780199226559
Which is Embodiment and the inner life: Cognition and Consciousness in the Space of Possible Minds
Pretty neat easter egg!
jgc says: “There’s a related thread on reddit about this.”
Notes
slowrotation reblogged this from moviecode
zeketaylor liked this
dandalambatu liked this golden-trash liked this
nobayta reblogged this from ea5e95
maybelightning liked this
sidnmalkin reblogged this from cbaldesign
exoqqen reblogged this from exoqqen
haileykitten liked this jasonmehmel liked this
chlostars liked this
psychosamurai liked this
blunttheking reblogged this from moviecode
blunttheking liked this
l-abime liked this
rubbishcollector liked this midnightketchupsupper liked this
cealcuadrado liked this
iwantet reblogged this from moviecode
kenfrederick liked this
lezzmeister liked this
ashbless liked this as-long-as-theres-rain liked this
reading-and-thinking liked this
reading-and-thinking reblogged this from moviecode
mizikalipatates liked this 0x5742 reblogged this from moviecode
vittoriomariadalmaso reblogged this from moviecode
angryengineerbouquetfan-blog reblogged this from moviecode
dragongrrl reblogged this from nuuro wincerind liked this
s0ph1sticated reblogged this from moviecode
mai-latte reblogged this from moviecode and added:
Oh shit, this is really cool!
frostbytez liked this
krisfreedain reblogged this from moviecode catatropic liked this
kripposoft-deactivated20161022 submitted this to moviecode- Show more notes
