HUDSON, N.H. — Bernie Sanders rode his soaring poll numbers yesterday — and ignored a wave of attacks from Hillary Clinton, focusing instead on driving voter turnout during campaign stops from the White Mountains to the Bay State border.

“The truth about politics today is that Republicans never win elections based on their ideas — because their ideas are pretty dumb,” Sanders told a crowd last night at a school in Hudson. “Democrats and progressives win when the voter turnout is high.”

Polls this week have shown Sanders up by as much as 27 points in New Hampshire and 8 points in Iowa with just nine days before the Iowa caucuses.

Sanders said he has now spoken to 30,000 Granite Staters and 450,000 Americans across the country since launching his campaign.

He covered more than 300 miles in New Hampshire in eight campaign stops over the past two days. Unlike most candidates, Sanders usually mingled for only a minute or two with voters, then bolted to the next tightly scheduled event — all of which favored stump speeches and audience questions over diner-stop glad-handing and general store photo ops.

His remarks occasionally veered into classic Larry David-esque meandering, illustrated with intense hand-flailing.

“I’m not a typical politician,” Sanders told a crowd in Bedford. “I don’t run negative ads. I don’t tell funny jokes. I have a terrible sense of humor, actually. You don’t want to hear my jokes.”

Sanders’ strategy relies heavily on young voter turnout, and he tried to drive that message home to Concord High School students participating in their first presidential election.

“Democracy is not a spectator sport,” Sanders said. “Watching the New England Patriots win the Super Bowl is a spectator sport. But Tom Brady is not a spectator when he’s in the middle of the conflict. Every one of you has got to be down there on the field.”

Many of Sanders’ supporters still doubt he can win the nomination and fully admit they’d back Clinton if she is the ultimate victor, but they speak of Sanders as a once-in-a-lifetime candidate and are still hoping for an upset.

“It’s the old story of a machine working against a revolution,” said Charles Favreau, a Sanders’ volunteer who drove six hours from New York to spend two weeks canvassing and phone-banking for the Vermont senator. “The office looks like a children’s crusade. They’re so excited. … I really believe he has made the connection between students, young people and society as a whole.”

Clinton — who assailed Sanders as a dreamer whose ideas “will never make it in the real world” in Iowa on Thursday — sent an email to supporters yesterday morning acknowledging her campaign is in trouble.

“The polls are getting tighter in Iowa and New Hampshire,” Clinton wrote. “There’s a real possibility we could lose those contests if this team doesn’t step up to close the gap.”

At the end of his final event last night Sanders tried to sum up his entire presidential run: “What this campaign is about is taking on everybody.”