Doctors who treated Bernie Sanders revealed Friday that he suffered a heart attack earlier this week — as the Vermont senator was released from a Las Vegas hospital, a report said.

The two doctors, Arturo E. Marchand Jr. and Arjun Gururaj, said in a statement that Sanders was treated for myocardial infarction — another name for a heart attack — when he was admitted to the hospital on Tuesday, the New York Times reported.

Sanders, 78, was in stable condition when he arrived at the hospital and doctors placed two stents into a blocked coronary artery, the doctors added in their statement.

As he was released Friday afternoon, Sanders waved to reporters, saying he felt “great,” ABC News reporter Christopher Donato wrote on Twitter.

The democratic socialist from Vermont also sent a tweet from his campaign account, urging his supporters to make calls to voters on his behalf.

“I’m looking forward to be back on the campaign trail soon,” he wrote.

Sanders was rushed to the hospital Tuesday night after suffering what his campaign characterized as “some chest discomfort” at a Nevada event.

“Following medical evaluation and testing he was found to have a blockage in one artery and two stents were successfully inserted,” Sanders’ campaign said in a statement after he was admitted to the hospital.

On Thursday, his campaign said he planned to participate in the upcoming Democratic presidential debate on Oct. 15.