I recall reading that their is a pesak/teshuvah/report by a major posek, perhaps an early "later" Acharon, (Rabbi Akiva Eiger zt"l) which noted that at least elementary arithmatic or mathematics was ...
The biographical sketch of Rabbi Moshe Feinstein that appears in Igrot Moshe volume 8 describes the following (my translation): The Communist takeover meant the schools taught against religion. ...
There is a well-known fact that the Vilna Ga'on studied math while in the bathroom since Torah was out of the question in an unclean place. It is also somewhat well-known that he produced the material ...