That was the only thing cigarettes were ever good for! Back when I smoked, if I was stuck on something, I would go have a cigarette. Most of the time I would have the answer (or at least a hint) when I came back in. Some say that nicotine temporarily increases brain function, so I just chalked it up to that.