A numbers-running and gambling ring that brought in more than $30 million annually collapsed after a yearlong investigation, culminating with 35 arrests and a major cash seizure, authorities said yesterday.

The investigation – dubbed “Operation Losing Bet” – targeted the city’s largest numbers-running syndicate, which had been working for decades out of flower shops, clothing and video stores, delis and hair salons in Manhattan, Brooklyn, The Bronx, Queens and New Jersey.

Perez “controlled the group’s cash flow and all aspects of the operation,” Kelly said.

Brooklyn DA Charles Hynes said his office presented evidence to the grand jury seeking the indictment of the outfit’s leadership for enterprise corruption.

“This is about the fueling of an underground economy,” Hynes said.

Perez and his top three associates are expected to be arrested in the next few days after the grand jury’s probe.

The foursome were slapped with a $3.4 million lawsuit by the DA’s office, which is looking to seize assets made by one of the operation’s “cash banks.”

That money and numbers-tabulation site was at 3800 Independence Ave. in the Riverdale section of The Bronx, where Perez stashed more than $50,000 and more gambling records.

“Some of the managers of this operation have done well enough to send their children to Ivy League schools,” said Brooklyn Executive Assistant DA Christopher Blank.

Among the arrested were Hector Maldonado, 52, and his wife, Naomi, 40, of Elizabeth, N.J. The two high-ranking “Corporation” players are charged with promoting gambling and possession of gambling equipment.

“We worked our way progressively up the ladder of the management,” Blank said.