Sasha Stefanovic scored 22 points, including a go-ahead 3 at the start of double overtime that sent No. 4 Purdue over No. 17 Illinois 96-88 on Monday.

Illinois guards Andre Curbelo and Alfonso Plummer made baskets in the final seconds of regulation and the first overtime before the Boilermakers (15-2, 4-2 Big Ten) broke away.

Purdue hit four straight shots to take an 89-83 lead with 1:03 left in double overtime. Eric Hunter Jr. had two of those baskets.Stefanovic went 5 of 8 on 3-point tries and also had eight rebounds. His last-second shot from long range fell short as the regulation buzzer sounded.

"They're the best basketball team we've played," Illinois coach Brad Underwood said. "And then I thought Sasha was elite today. We've done a pretty good job on him for the most part the last few years, and today he was the difference."

Plummer led the Illini (13-4, 6-1) with 24 points, shooting 6 of 12 on 3s. His layup with 9 seconds left in the first overtime made it 78-all.

Curbelo, who had missed 11 games after being injured, had 20 points, six rebounds and three assists. His basket with 14 seconds remaining in regulation tied it at 69.

Boilermakers center Zach Edey was effective, especially early on, finishing with 20 points on 9-for-14 shooting to go along with eight rebounds. He also helped limit Kofi Cockburn to 10 points on 3-of-9 shooting in 22 minutes before the Illinois center fouled out early in the first overtime.

"I thought (Edey) embraced the physicality of the game," Purdue coach Matt Painter said. "He didn't turn the ball over, which was great, and he was ready to play. That's the whole thing. If you can establish your big man and really get them in a bind, that helps out everything."

Purdue guard Jaden Ivey struggled to hit shots, going 3 of 10, but made 13 of 15 free throws to finish with 19 points and eight rebounds.

Illinois trailed for most of the first overtime period, but Curbelo made a turnaround jumper and Plummer had a layup to force a second overtime.

Edey was a factor early on, scoring 14 points on 6-of-7 shooting in the first half. The Boilermakers took an 11-point lead into the break, but back-to-back 3-pointers from Plummer and Da'Monte Williams helped Illinois close the deficit to 39-34 with 17:43 to play.

"This win just gives you confidence that you can go into a hornet's nest and be up against it a couple times and find a way to make a play, get a stop or get a rebound or make your free throws like we did at the end," Painter said. "Our guys hung in there."

BIG PICTURE

Purdue: Boilermakers are 3-1 this season against AP Top 25 opponents, while Illinois is 0-2 against ranked teams. ... The Boilermakers have won seven of their last eight games since an upset loss at Rutgers on Dec. 9. ... Purdue and Illinois meet again in West Lafayette, Indiana, on Feb. 10.

Illinois: The return of Curbelo was a welcome development for the Illini.His ability to penetrate and get to the hoop gives Underwood's offense more dynamism in addition to Cockburn and perimeter shooters such as Plummer and Trent Frazier, who scored 16 in the loss. ... The Illini remain in first place in the Big Ten, and there's another conference contender coming to town next week in Michigan State on Jan. 25.