It it turn off quickly, I agree for a PSU problem.
If it appens after some time, like several minutes, hours, or under heavy load: Several CPU intensive application running, I'd suspect an overheating isue.
In this case, you need to open the case and clean out the dust accumulated in the CPU's heat sink.
Electro, August 2015