Skip to content

Instantly share code, notes, and snippets.

Created Sep 14, 2015
What would you like to do?
from rounds import round_map
from prime_index_map import prime_map
import struct
import binascii
out = ""
for lround in round_map:
i = 0
val = 1
while i < len(lround):
n = lround[i]
if n > 0:
val *= prime_map[i] ** n
i += 1
out += struct.pack(">H", val)
print out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment