How major US stock indexes fared Thursday, 10/05/2023