NEW YORK (AP) -- Martin Shkreli, the eccentric former pharmaceutical CEO notorious for a price-gouging scandal and for his snide "Pharma Bro" persona on social media, was convicted Friday on federal charges he deceived investors in a pair of failed hedge funds.

A Brooklyn jury deliberated five days before finding Shkreli guilty on three of eight counts. He had been charged with securities fraud, conspiracy to commit securities fraud and conspiracy to commit wire fraud.

Shkreli, upbeat and defiant outside the Brooklyn courthouse afterward, called his prosecution "a witch hunt of epic proportions" but conceded that maybe the government had found "one or two broomsticks."

Asked about his client's social-media antics, attorney Ben Brafman said it was something they would be working on.

"There is an image issue that Martin and I are going to be discussing in the next few days," he said, adding that while Shkreli was a brilliant mind, sometimes his "people skills" need work. As he spoke, Shkreli smiled and cocked his head quizzically in mock confusion.

Brafman predicted that Shkreli would someday go on to develop cures to terrible diseases that afflict children.

Within an hour of leaving the court, Shkreli was at home live-streaming on YouTube and calling the split verdict a victory, despite his conviction on two of the most serious counts. Prosecutors had a different take.

"There's one statement that's most important and that's the jury's statement: guilty on those counts," said Acting U.S. Attorney Bridget Rohde.

Prosecutors had accused Shkreli of repeatedly misleading investors about what he was doing with their money. Mostly, he was blowing it with horrible stock picks, forcing him to cook up a scheme to recover millions in losses, they said.

Shkreli, 34, told "lies upon lies," including claiming he had $40 million in one of his funds at a time when it only had about $300 in the bank, Assistant U.S. Attorney Alixandra Smith said in closing arguments. The trial "has exposed Martin Shkreli for who he really is — a con man who stole millions," added another prosecutor, Jacquelyn Kasulis.

Story continues

But the case was tricky for the government because investors who testified said Shkreli's scheme actually succeeded in making them richer, in some cases doubling or even tripling their money on his company's stock when it went public.

"Who lost anything? Nobody," Brafman said in his closing argument. Some investors had to admit on the witness stand that partnering with Shkreli was "the greatest investment I've ever made," he added.

While the convictions carry maximum penalties of years in prison, Brafman said that the lack of financial harm meant that Shkreli could get no jail time when he is sentenced. A sentencing date has yet to be set.

For the boyish-looking Shkreli, one of the biggest problems was not part of the case — his purchase in 2014 of rights to a life-saving drug that he promptly raised the price from $13.50 to $750 per pill. Several potential jurors were kept off the panel after expressing disdain for the defendant, with one calling him a "snake" and another "the face of corporate greed."

The defendant also came into the trial with a reputation for trolling his critics on social media to a degree that got him kicked off Twitter and for live-streaming himself giving math lessons or doing nothing more than petting his cat, named Trashy. Among his other antics: boasting about buying a one-of-a-kind Wu-Tang Clan album for $2 million.

Shkreli, who comes from an Albanian family in Brooklyn, was arrested in 2015 on charges he looted another drug company he founded, Retrophin, of $11 million in stock and cash to pay back the hedge fund investors. Investors took the witness stand to accuse Shkreli of keeping them in the dark as his scheme unfolded.

"I don't think it mattered to him — it was just what he thought he could get away with," said Richard Kocher, a New Jersey construction company owner who invested $200,000 with Shkreli in 2012.

Shkreli's lawyer agreed his client could be annoying but said his hedge fund investors knew what they were getting.

"They found him strange. They found him weird. And they gave him money. Why? Because they recognized genius," Brafman said, adding that they had signed agreements that his client wasn't liable if they lost their money.

Jurors also heard odd vignettes befitting the quirky defendant: how Shkreli slept on the floor of his office in a sleeping bag for two years; how a drug company board member and former American Express executive wrote an email saying he'd meet with Shkreli "only if I can touch your soft skin"; how Shkreli wrote a letter to the wife of an employee threatening to make the family homeless if the man didn't settle a debt.

Shkreli didn't testify. But rather than lay low like his lawyers wanted, he got into the act by using Facebook to bash prosecutors and news organizations covering his case. In one recent post, he wrote, "My case is a silly witch hunt perpetrated by self-serving prosecutors. ... Drain the swamp. Drain the sewer that is the (Department of Justice.)"

The judge ordered Shkreli to keep his mouth shut in and around the courtroom after another rant to new reporters covering the trial.

Prosecutors "blame me for everything," he said. "They blame me for capitalism."

After agreeing to continue Shkreli's $5 million bail, the judge told him: "I wish you well, Mr. Shkreli. See you soon."

____

Associated Press Writer Karen Matthews contributed to this report.