Erdos was on serious high test, Benzedrine. He quit for a while but said his math suffered too much.
Methamphetamine was the standard military "go pill" for decades. Then dextroamphetamine. Now there's interest in modafinil, which has milder side effects.[0,1]