This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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