From left, Kumail Nanjiani, Martin Starr, Thomas Middleditch, Zach Woods and T.J. Miller form a team of nerds in “Silicon Valley.” (Isabella Vosmikova/HBO)

In Mike Judge’s awkwardly hilarious new HBO series “Silicon Valley” (10 p.m., Sun.), a software developer named Richard turns down a $10 million offer for his potentially billion-dollar company. Instead, he opts to maintain ownership under the guidance of an investor who commits $200,000 for a small share.

When Richard (Thomas Middleditch) goes to meet with the investor, Peter Gregory (the late Christopher Evan Welch), and pick up the check, it becomes clear he’s in way over his head. Gregory wants to see a presentation for investors, a business plan and a go-to-market strategy.

“I just didn’t know that any of that stuff was due yet,” Richard says.

“Due?” Gregory replies. “This is not college, Richard. I’m not going to be giving you a course syllabus. … What did you give up that money for?”

Richard doesn’t have an answer, which is what makes “Silicon Valley” so funny. One day, he’s going to be rich. Until then, we get to watch him suffer.

“This is going very poorly,” Gregory says, with Richard still in the room. “He doesn’t seem to know what he’s doing.”

If he did, there wouldn’t be anything for viewers to laugh at.