Prime95 is pertty useful. Any of the tests will drive the CPU temps to max in about 10 minutes.
However, the small fft's test tends to highlight problems with CPU settings. The large fft's and blend tests tends to work the memory subsystem harder.
P95 drives temps to max because it puts a constant 100% load on the CPU's. Regular programs, even games, do not. Lower CPU load = lower temps.
One of the values of programs such as P95 is that you know nothing else will drive your CPU temps higher.
There's a fair amount of discussion about how long to stress test. People will advocate 2, 4, 6, 8, 12, or 24 hours. I'd say the average is 4 - 8 hours. I, however, test for 24 hours. I ergard stability as very important.