For some reason, this is something I have very often thought about. Not because I think I'll ever to go prison, but because I've often wondered what I'd do if I didn't have access to things that please me, like a musical instrument, or a computer. I've often thought that I would also be capable of keeping my mind excited without anything, and for me the one item that always stands out is that I'd commit myself fully to number theory and just think about integers and prime numbers all day and all night, for years, trying to work out the most basic puzzles in existence.
That would probably never happen, I'd more likely end up a depressed opiate addict, but the thought that it could happen, even in the face of incarceration, gives me a bit of strange solace.