Trying to brute force, but generating too many combinations
Somewhat convolutated way of grouping the prime numbers by their masks
Trying, and failing, at narrowing down the problem