Ha, well then my class/texts have failed to mention these practical uses.
That's why Hardy famously used it as his example of mathematics done with no consideration or hope of there ever being a practical application.
Either way, Hardy was wrong. Number theory became relevant because of the work of people who thought it could be. There was hope for a practical application, even if Hardy couldn't see it.
Nitpick - latter half of the first half.