I recall many years ago hearing that a mathematician had invented something and was very happy about the fact that it had absolutely no practical use. I may remember the details incorrectly but I believe it was one-way functions -- which are used all over the place now in computer security. Someone please correct me if I have the details wrong here.