in reply to Re^3: One for the weekend: challengein thread One for the weekend: challenge
This is a correct solution. Slightly slower (0.7 seconds) and about 1/3rd longer than your previous version.