This is most definitely illegal in the US. Lotteries have all kinds of rules associated with them, and online lotteries are specifically outlawed. That's why sweepstakes rules normally all begin with "NO PURCHASE NECESSARY" -- it's to legally distinguish the sweepstakes from a lottery.