What is the minimum length requirement for each of the walls of a 5-sided sukkah?
What about 6 sides?
What about 7?
What about ∞ sides (i.e. a circle)?
Don't take my word on the translation, but Shulchan Aruch 634:2 says:
And MB adds that any other shape has the same rule and that one need not sit in the contained square.
You ask about wall length, though. For a circle, a contained square of 7×7 means, Baer Hetev and others there say, the wall length is 29.4 t'fachim (because 7×√2×π=7×1.4×3=29.4).
Other polygons' wall lengths can vary. The 'shortest' perimeter n-gon (n-sided polygon) containing a 7×7 square is one that approximates such a square, like this pentagon:
(Shortest is in scare quotes because there is no shortest really: it's always possible to get a slightly closer approximation of the square by moving the outlying vertices slightly closer to it.)
As for regular polygons, S. J. Dilworth and S. R. Mane, in a 2011 Journal of Geometry paper, say that if a regular polygon of radius 1 (i.e. length 1 from the center to a corner) has n sides, then:
(A tip of the hat to sateesh mane for pointing me to that paper.)
In that case, we have that a 7×7 square (whose radius is 7/√2) sits inside a regular n-gon of radius:
Now, the radius of a regular n-gon is s/2sin(π/n) where s is the length of a side of the n-gon. Thus, the side length of your suka would have to be:
For example, a regular pentagon would need sides of length 7√2sin(π/5)(cos(π/10)+sin(π/10))/(cos(π/5)+sin(π/10)), which comes (using modern techniques, not those that yielded the 29.4 figure above) to a smidgen more than 6.3 t'fachim; a regular hexagon, a smidgen more than 5.52 t'fachim; a regular heptagon, a smidgen more than 4.64 t'fachim.
Caveat: Some of these calculations may be off. (In particular, I got a smaller sidelength earlier for the smallest pentagon (as you can see in an earlier revision of this answer), which shouldn't be possible, and I'm not sure whether that was mistaken or this is.) Also, I haven't read through the paper by Dilworth and Mane, and can't vouch for it.