About 1,700 people took part in the 26.2-mile course; another nearly 3,800 who ran the 13.1-mile half marathon, organizers said.