How do Torque and HP differ?

Torque is the empirical measurement. You cannot measure horsepower without taking into account the torque figure over a set amount of time. The "5252" number represents the output of an equasion based on converting James Watts' estimation of how much work 1 strong horse could do as indicated by how far a 150lbs weight could be lifted in one minute. Horsepower is "work over time".
So torque is the figure of actual power output at any one point in time.
Horsepower is how much work that torque can do over a set number of rotations per minute.
In terms of a race car - Horsepower is king.