Maximizing Prefix-Confidence at Test-Time Efficiently Improves Mathematical Reasoning