Earlier this month, 22-year-old Sandeep Singh of Hyannis, Massachusetts was DUMPED by his girlfriend.  And he found one hell of a way to get over it. 

On Tuesday, Sunny hit the Mega Millions jackpot . . . and won $30.5 MILLION.

Sunny says he's been buying Mega Millions tickets every two or three weeks for about a year.  Right now he's working TWO jobs . . . as a salesman at Best Buy and a teller at Citizens Bank.  He's planning to quit both jobs and go back to school.  He also wants to use the money to help his family.

Sunny is one of two people who hit the Mega Millions.  The other is in Fresno, California.  They split the $61 MILLION prize, and Sunny took the lump sum.  He's looking at $16.1 MILLION after taxes.

 As for the girl who dumped him, he says quote, "I was heartbroken at first, but now I'm getting over it.  I'm not really worried about it."