Sen. Bernie Sanders slammed Mike Bloomberg right out of the gate at Tuesday night’s Democratic primary debate in South Carolina — when responding to a question about the economy and President Donald Trump.

The front-runner Vermont lawmaker was asked about the record-low unemployment rate under Trump and why Americans should trust that a self-proclaimed Democratic Socialist would be good for the economy.

“The economy is doing really great for people like Mr. Bloomberg and other billionaires,” Sanders, 78, attacked.

“For the ordinary American, things are not so good,” he added, citing stagnant wage growth.

But the billionaire former mayor of New York wasn’t going to let that dig go unchecked — bringing up Russia’s apparent attempts to boost Sanders’ campaign.

“Russia is helping you get elected so you’ll lose to [Trump],” Bloomberg, 78, claimed.

“Oh, Mr. Bloomberg,” Sanders sighed, before addressing Russian President Vladimir Putin directly.

“Hey, Mr. Putin,” he said. “If I’m president of the United States, trust me, you’re not going to interfere in any more American elections.”