Kant gives a famous example of a similar synthetic a priori in the Critique of Pure Reason, 7+5=12:"The concept of twelve is by no means thought by merely thinking of the combination of seven and five; and analyze this possible sum as we may, we shall not discover twelve in the concept. We must go beyond these concepts, by calling to our aid some concrete image [Anschauung], i.e., either our five fingers, or five points (as Segner has it in his Arithmetic), and we must add successively the units of the five, given in some concrete image [Anschauung], to the concept of seven. Hence our concept is really amplified by the proposition 7 + 5 = 12, and we add to the first a second, not thought in it. Arithmetical judgments are therefore synthetical, and the more plainly according as we take larger numbers...".
"The concept of twelve is by no means thought by merely thinking of the combination of seven and five; and analyze this possible sum as we may, we shall not discover twelve in the concept. We must go beyond these concepts, by calling to our aid some concrete image [Anschauung], i.e., either our five fingers, or five points (as Segner has it in his Arithmetic), and we must add successively the units of the five, given in some concrete image [Anschauung], to the concept of seven. Hence our concept is really amplified by the proposition 7 + 5 = 12, and we add to the first a second, not thought in it. Arithmetical judgments are therefore synthetical, and the more plainly according as we take larger numbers...".
Obviously, as we take larger numbers a live human may run out of time to synthesize the requisite intuition. But our understanding also has the capacity to project indefinite extensions of our intuitions (as with mathematical induction for instance), so we can intuit that it is possible in principle. This last part was developed systematically by Kant's mathematical descendants, Hilbert and intuitionists, see Was there a Kantian influence on Hilbert's formalist programme?
Hume would equally have no problem, logic and mathematics for him are relations of ideas, and everything in them is analytic a priori, i.e. tautological. Kant was overly optimistic when he wrote "For he would then have recognized that, according to his own argument, pure mathematics, as certainly containing a priori synthetic propositions, would also not be possible; and from such an assertion his good sense would have saved him", he:
"For he would then have recognized that, according to his own argument, pure mathematics, as certainly containing a priori synthetic propositions, would also not be possible; and from such an assertion his good sense would have saved him".
He should have read Hume's Treatise, not just his Enquiry. It would be a more interesting question for Frege, for whom arithmetic was a priori analytic, and geometry a priori synthetic, but he'd probably say that equating geometric and analytic π is where it becomes synthetic. Practical considerations generally did not preoccupy traditional epistemologists, be it Plato, Hume, Kant, Frege or Husserl.