The Missing Primitive: Diagnosing and Repairing Mathematical Reasoning in Large Language Models | AI Learning Platform