How do I increase mental stamina?

No.10895457 ViewReplyOriginalReport
I like math but my brain becomes mush after a few hours.
What I though could help:

Having a consistent schedule.
Getting good sleep.
Taking cold showers.
Drinking coffee.
Avoiding processed sugars.
Taking breaks.
Doing physical exercise.

Anything else?
Anyone here able to be productive for long stretches without using drugs?