Sen. Bernie Sanders left a hospital in Las Vegas Friday, three days after being hospitalized because of a blocked artery in his heart.

Asked how he was feeling as he walked out of Desert Springs Hospital, the 78-year-old Vermont senator and presidential candidate said, "great." He appeared to raise his fist in celebration as well.

A short time later, in a video posted to his Twitter account, Sanders and his wife, Jane, thank the public for its support.

"I'm feeling so much better," the senator said. "I just want to thank all of you for the love and warm wishes that you sent to me. See you soon on the campaign trail."

Sanders was hospitalized in Las Vegas on Tuesday after he experienced chest discomfort during a campaign event and sought medical evaluation. Two stents were "successfully inserted," his campaign said earlier.

His doctors confirmed in a statement released Friday afternoon that Sanders had suffered a heart attack, described in the statement as a "myocardial infarction."

Sanders was discharged after an uneventful stay in the hospital and was told to follow up with his personal doctor, according to the doctors, Arturo E. Marchand Jr.and Arjun Gururaj.

Sanders thanked the hospital's doctors, nurses and staff in the statement and suggested he'll get back on the campaign trail soon, though it wasn't immediately clear when.

"After two and a half days in the hospital, I feel great, and after taking a short time off, I look forward to getting back to work," he said.