Andrew John Wiles said this quote

I carried this problem around in my head basically the whole time. I would wake up with it first thing in the morning, I would be thinking about it all day, and I would be thinking about it when I went to sleep. Without distraction I would have the same thing going round and round in my mind.(Recalling the degree of focus and determination that eventually yielded the proof of Fermat's Last Theorem.)