Here is the classic, much-read introduction to the craft and history of mathematics by E.T. Bell, a leading figure in mathematics in America for half a century.
The original text of The Last Problem traced the problem from 2000 BC to 17th century France. Along the way we learn quite a bit about history, and just as much about mathematics. This book fits no categories.
It probes the work of Pythagoras, Galileo, Berkeley, Einstein, and others, exploring how "number magic" has influenced religion, philosophy, science, and mathematics