For a long time, number theory in general, and the study of prime numbers in particular, was seen as the canonical example of pure mathematics, with no applications outside of the self-interest of studying the topic with the exception of use of prime numbered gear teeth to distribute wear evenly.
Besides the study of prime numbers, what general theory was considered the official example of pure mathematics?
number theory