BOISE, Idaho (AP) — Boise State coach Leon Rice had a plan Wednesday night as rival Idaho trimmed a 23-point lead down to single digits - get the ball to junior guard Derrick Marks.

Marks scored a career-high 39 points, including his team's final 15 points, as Boise State held on to beat Idaho 98-89 in a nonconference game played on a neutral court at CenturyLink Arena in front of a sold-out crowd of 5,747.

"He's so strong with the ball, and if you foul him, it's pretty much automatic," Rice said of Marks, who made a school-record 21 free throws, out of 23 attempts, to help the Broncos earn their fifth consecutive win over Idaho.

Boise State (5-0) led from start to finish. Forward Ryan Watkins scored all 16 of his points in the first half when the Broncos took a 44-31 lead. All 44 points in the half came from in the paint or the foul line, quite a contrast from Boise State's previous wins. Boise State came in averaging 11.8 made 3-pointers per game. Against Idaho, the Broncos attempted seven and made only two.

The Vandals (3-4) made no secret their plan was to prevent a 3-point barrage, but Boise State made them pay with the drive. The Broncos shot 61 percent from the field in the first half and made 16 of 23 foul shots.

"I thought they dominated us in the first half, " Idaho coach Don Verlin said. "They were able to drive the ball to the basket and we couldn't keep them in front of us, and we fouled them and they were able to build their lead at the free-throw line.

"We definitely wanted to get that 3-point number down. You have to pick your poison with them. I didn't feel like we could allow them to get going."

Behind Marks and Anthony Drmic (21 points), Boise State built a 75-52 lead with 8:25 remaining before Idaho got rolling. The Vandals shot 63 percent from the field in the second half and closed to within 94-89 with 44 seconds left before Marks sealed the victory with four consecutive free throws.

"Every time we play them I always feel like we're down one because they always play hard," said Boise State's Watkins, who pulled down a game-high 14 rebounds.

Stephen Madison led Idaho with 26 points and eight rebounds, while Glen Dean (15) and Mike Scott (14) also did most of their damage during the second half when Idaho got back in the game.

Mikey Thompson finished with 10 points for Boise State, which fell two points shy of scoring 100 points for the fourth time this season and only turned the ball over five times. The Broncos made 34 of 44 foul shots and outrebounded Idaho by a 35-28 margin. The Vandals made 23 of 31 free throws and lost despite committing just six turnovers.