LOS ANGELES - Kobe Bryant scored 40 points for the 100th time in his career, and the Los Angeles Lakers avoided a rare three-game losing streak with a 106-93 victory over the Detroit Pistons on Tuesday night.

Andrew Bynum had 17 points and 12 rebounds for the Lakers, who took a 28-point lead before surviving Detroit's impressive fourth-quarter rally to avoid their first three-game skid in nearly two years. Bryant, who reached 40 on a three-pointer with 19 seconds left, trails only Wilt Chamberlain and Michael Jordan in career 40-point games in NBA history.

Will Bynum scored 10 of his 24 points in the final period for the Pistons, who trimmed the Lakers' lead to 98-91 with 1:55 to play before Shannon Brown made three free throws and a soaring dunk to seal it.