http://www.perlmonks.org?node_id=458435


in reply to Generating all 5-card hands

Forget brute force, using logic to try to create a hand that has no points:


this elminates all possible hands.

-Scott

Update: L~R beat me to what this essentially boils down to up in this node posted just before I'd managed to finish mine.