I remember reading this as a teenager and concluding that the prisoner actually doesn't know for sure whether he will be hung on Tuesday or not, because he may be hung on Wednesday. Only on Thursday can he be reasonably sure he won't be hung on Friday, and thus he would know he is hung on Thursday. But any day before that, he wouldn't really know.
But also I think Martin Gardner concluded the same thing.
But also I think Martin Gardner concluded the same thing.