Improved code.  Checker was incorrect, rewrote.  Included brute force.