A number of products now run code competitions meaning you need to buy the product to enter. Look for promotions packs when you make a purchase then head to their website to enter their prize draw. Make a note of the terms too, as these comps are getting stricter! You might also want to take a look at Purchase Required Competitions.
Click on the site names to go directly to the competitions. Follow the page numbers for more competitions.