Or Modafinil? I do Modafinil whenever I really need to get something done. I just stare at monitor and code for a good 8-10 hours, almost uninterrupted. But then when the effect wears off, I start to get migraine or really heavy headache, but it disappear the next morning tho.
I agree with the other answers that it depends on the type of programming you end up doing…the nature of the program being developed, but having a background in discrete math is great to have just in case.
From my experience, there can be unexpected problems where you will advantage from having grasp at discrete math. I worked on a project for a telecom company where they wanted a simulation to predict the impact on network coverage if a specific cell tower (BTS) was uninstalled. I ended up relying heavily on the cross-product formula and some ray-casting algorithms to model how coverage would shift in the area.