Mathematician Stefan Mandel has won the lottery 14 times. His secret, which he used to win lotteries all over the globe came down to using his math skills. To guarantee a win, Mandel actually wrote a number-picking algorithm. It was designed to match 5 out of 6 numbers. That way, Mandel didn't actually have to buy every single combination, just certain huge groups that almost guaranteed a win. He used money from donors to buy tickets and was able to pay them back after he hit a few jackpots.
If you don't have time to write a money making program perhaps try another route. Richard Lustig has won seven jackpots and is sharing his advice.