David Zalubowski, Associated Press
Purdue guard Johnny Hill, left, fights off a potential steal by Arkansas Little Rock guard Josh Hagins in the first half of a first-round men's college basketball game Thursday, March 17, 2016, in the NCAA Tournament in Denver.

DENVER — Little Rock is moving on in the NCAA Tournament, thanks to an out-of-nowhere comeback that led to an 85-83 double-overtime victory over Purdue on Thursday.

Josh Hagins sent the game into overtime with a shot from the edge of the midcourt logo, and then into double OT with an arcing shot off glass over an outstretched defender.

The 6-foot-1 senior finished with 31 points, including six in the second overtime.

The 12th-seeded Trojans (30-4), trailed 65-52 with 3:33 to go in regulation, and then went on a 12-0 run to make it a game. Trailing by three on the final possession, Hagins tried to find space, then stepped back and launched from 30 feet to tie it.

Little Rock will face Iowa State on Saturday in the second round.

Vince Edwards led Purdue (26-9) with 24 points.