Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import matplotlib.pyplot as plt
import numpy as np
input = open("stage2-input.bin", "rb").read()
bin = map(int, list(''.join(map(lambda s: s[2:], map(bin, map(ord, list(input)))))))
results = np.correlate(bin, bin, mode='full')
results = results[results.size/2:]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment