Three winning tickets were sold nationwide for Wednesday's half-billion dollar pot at the end of the Powerball rainbow, but New Yorkers weren't shut out in the monster lottery drawing. Four second-place tickets at $1 million each were sold in the state, including two in Suffolk County.

The three tickets that will share the $564.1 million jackpot matched all six numbers -- 11, 13, 25, 39, 54 and the Powerball of 19 -- and were sold in North Carolina, Puerto Rico and Texas, lottery officials said.

The lump-sum option is worth $381.1 million.

In New York, four tickets matched five numbers but missed the Powerball and were worth $1 million apiece. Two tickets were sold in Suffolk -- at the 57 Shell Station at 1331 Motor Pkwy., in Hauppauge, and the 7-Eleven at 408 Rte. 112, in Port Jefferson Station.

At $564.1 million, Wednesday's jackpot was the fifth largest in the history of multistate big-prize drawings in the United States.

The Associated Press said the ticket in Puerto Rico marked the first Powerball jackpot winner sold outside the continental United States.

The two largest jackpots for a U.S. lottery game are both from the Mega Millions game -- $656 million won in March 2012 and $648 million won in December 2013.

The next two are in Powerball -- $590.5 million won in May 2013 and $587.5 million won in November 2012.