This file contains hidden or 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
#!/usr/bin/env python2 | |
""" | |
As I'm not confident enough in my own Haskell comprehension skills, I started with reimplementing the whole thing in Python, | |
checking each function if it does the same thing. | |
At the end it seemed like it does the following: | |
- There is some padding of the flag based on its length (which we know, so it will be irrelevant) | |
- The flag is treated as a bit string | |
- Each bit position has a value assigned to it based on primes |
OlderNewer