I tried to prove the theorem
Let $X$ be a Banach space. Then $K(X) = B(X)$ if and only if $X$ is finite-dimensional.
Please could someone check my proof?
(The implication where $X$ is finite dimensional is clear.)
For the other direction: I will show that if $X$ is an infinite dimensional Banach space then $K(X) \subsetneq B(X)$ by giving an example of $T$ such that $T: X \to X$ is bounded but not compact. Take $T$ to be the identity operator. Then $T$ is bounded but it does not map the unit ball to a relatively compact set because the closed unit ball is compact if and only if $X$ is finite dimensional.