Is it necessary to be based on the prefix, or can it be implemented by pattern, for instance, every even byte is zero, or the 4 bytes after the first 3 bytes must be all 7s, etc?
Is it simply brute-forcing hashes, looking for matching patterns that are not yet known?