Computer won't stay on for long

brokenspacs

Prominent
Sep 23, 2017
3
0
510
About two months ago, my computer shut down and when I started it up, it wouldn't even post. All my monitors showed were "no signal" after lots of trial and error, i figured it might be my CPU and i got my warranty from amd and got a new one. It finally came in the mail a couple days ago and when I installed it back into my computer, it started. After about 5 minutes of being on, it shut down. When I tried to start it back up, it shut down the moment it got to the desktop. And now sometimes it doesn't even get to there. But if I open the bios, it never shuts down when I'm in there. I let it sit for a good 10 minutes and it was okay there. Not sure if it's still a CPU problem or maybe power supply. Any advice would be appreciated
 

brokenspacs

Prominent
Sep 23, 2017
3
0
510

I thought the same thing so when I got it turned it for a decent amount of time, I quickly downloaded a program to see. CPU was around 40 degrees and gpu was about the same
 

brokenspacs

Prominent
Sep 23, 2017
3
0
510
I didn't see it before but I checked the motherboard temperature and one of the 3 different temperatures shoots up to over 100 degrees whenever I try to do anything. The highest I saw it get was 113 and didn't want it getting any higher