Matt Painter won his 500th game at his alma mater as Purdue beat Miami 79-69 to head back to the Sweet 16.