The Unexpected Hanging Paradox

From reader Neil Taylor comes the request we examine the unexpected hanging paradox. I'm stealing from Wikipedia, which stole a version from Wolfram. A judge tells a condemned prisoner that…