Visitors gather outside the New York Stock Exchange on May...

Visitors gather outside the New York Stock Exchange on May 26, 2015 in Manhattan. Credit: Getty Images / Spencer Platt

The Nasdaq composite index closed at a record Wednesday, after the biggest drop for U.S. stocks in three weeks, as technology shares rebounded and investors watched for progress in talks on Greece.

At the close on Wall Street, The Nasdaq was up 73.8 points, about 1.5 percent, at 5,106.59, topping its previous closing record set on April 24, as semiconductors jumped the most in two months and Apple rallied. The Standard & Poor's 500 index gained 19.3 points, nearly 1 percent, to 2,123.5, nearly erasing the losses from the previous day. The Dow Jones industrial average closed up 129.5 points, about 0.7 percent, at nearly 18,163.

As the markets closed, the price of benchmark U.S. crude was down about 42 cents at $57.61 per barrel on the New York Mercantile Exchange.

Get the latest news and more great videos at NewsdayTV Credit: Newsday

Too many rainy weekends? ... LI Works: Making Countertops ... LEGO at Old Westbury Gardens ... Previewing the Knicks in the NBA Finals ... Get the latest news and more great videos at NewsdayTV

Get the latest news and more great videos at NewsdayTV Credit: Newsday

Too many rainy weekends? ... LI Works: Making Countertops ... LEGO at Old Westbury Gardens ... Previewing the Knicks in the NBA Finals ... Get the latest news and more great videos at NewsdayTV

SUBSCRIBE

Unlimited Digital AccessOnly 25¢for 6 months

ACT NOWSALE ENDS SOON | CANCEL ANYTIME