Andrew Yang is out. How 4 remaining Democratic presidential candidates reacted.

Andrew Yang, a first-time candidate for elected office, ended his 2020 presidential campaign after outlasting more than a dozen other politicians in the Democratic field.

The 45-year-old entrepreneur dropped out of the race Tuesday after polls for the New Hampshire primary closed. His push for universal basic income thoroughly a monthly stipend helped his campaign stand apart.

“We’ve accomplished so much together,” Yang said at a rally in Manchester Tuesday night. “We have brought a message of humanity first and a vision of an economy and society that works for us and fellow Americans.”

Yang wasn't the only candidate to drop out Tuesday. Michael Bennet, a U.S. senator from Colorado, also exited the race. Both told supporters that they would support whoever the Democratic nominee for president would be.

Here's how four of the remaining candidates reacted to Yang leaving the campaign trail:

Bernie Sanders

The Vermont senator praised Yang for "running an issue-focused campaign" and bringing new voters into the political process in a tweet.

He said he also looked forward to working together "to defeat the corruption and bigotry of Donald Trump."

Sanders won the New Hampshire primary Tuesday, beating Pete Buttigieg by just under two percentage points.

Pete Buttigieg

In a tweet, the former South Bend, Indiana, mayor said Yang's campaign made a big impact, saying it was "built on prepare for America's future."

"Andrew, we’ll miss you and the #YangGang on the trail, but I can’t wait to work together to help prepare America for the challenges ahead," Buttigieg wrote.

Buttigieg narrowly lost the New Hampshire primary Tuesday to Sanders, a week after beating him in an even closer result in the Iowa caucuses.

Amy Klobuchar

In a tweet, the senator from Minnesota said she'd miss Yang on the campaign trail, noting how he inspired others to get involved with politics.

"By thinking outside of the box, you will have a lasting mark in bringing new voters to the ballot box in 2020. And I’ve enjoyed hanging out with the #yanggang."

Klobuchar came in third in the New Hampshire Tuesday night after winning just a single delegate between other top candidates during the Iowa caucuses last week.

Elizabeth Warren

Much like Buttigieg and Sanders, the Massachusetts senator expressed that she hoped to work with Yang as the election draws nearer.

"Thank you, @AndrewYang," she wrote in a tweet. "I look forward to fighting alongside you to build an economy that works for working people."

Warren came in fourth place in the New Hampshire primary, with less than half the percentage of votes Klobuchar won. She earned eight delegates to Klobuchar's one in the Iowa caucuses last week.

As of this story's publication, Joe Biden had not released a statement of AndrewYang's departure from the race. The former vice president left New Hampshire Tuesday to attend an evening rally in South Carolina.

Who's still in the race? An interactive guide to the 2020 presidential election

Nate Chute is a producer with the USA Today Network. Follow him on Twitter at @nchute.