It matters what topics are taught in elementary school, and how they are taught. We as society need to figure out what is going to be important in 40 years (when current kids are 45-50 years old) and ensure those things are started so they slowly have time to get the concepts.
I can be reasonably confident that logical thinking will be important, which you can get from Math (philosophy also has logic - is that useful too? My background is math so I don't know about that side). I'm sure other parts of math will be useful but not what. The BASIC I learned in school was worthless (it would have been useful as an introduction if my teachers didn't teach/test so many "facts" that were wrong - I was too shy to tell them that back then and now I'm mature enough to know I'd get in trouble without changing anything so there was no point)