If the projections of the line segment AB on the coordinate axes are 12,3,k and AB=13, then k2−2k+3 is equal to: