He had been charged with securities fraud, conspiracy to commit securities fraud and conspiracy to commit wire fraud – and could face 20 years in prison.

Shkreli, upbeat and defiant outside court 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.

MOST READ IN WORLD NEWS

AIR BLAST HORROR

Factory worker killed by colleague who shoved an air hose up his bum

MCMIRACLE!

Has Nessie washed up in AMERICA? Loch Ness Monster-type beast found on beach

CAUGHT RED HANDED

Pop star filmed ‘performing sex act on TV host' at fashion show event

PLAY HIM OUT

YouTube star Bento the cat who shot to fame playing piano in viral videos dies

DEADLY GAME

Boy, 9, ‘kills sister, 13, after she refused to give him video game controller’

APE-ING AROUND

Gorilla walks like a HUMAN to avoid getting his hands - or his food - dirty

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 US 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.

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.

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 5,000% 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.

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

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

The charges involved securities fraud and conspiracy to commit securities and wire fraud

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

Jurors also heard odd anecdotes about 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 organisations 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.