We now make sure that all subsets that generate squares are checked and that we get a nontrivial factor in the end.
moved comment.
Summoned Cthulhu