Where is major segment in blender 2.9x
When you add a torus, you have the Adjust Last Operation panel floating in the 3d view. It may be collapsed so just expand it.

The panel is only available after an operation and once you perform another operation it disapears.
These settings are specific to Add torus operation, other operations will have other kinds of settings in the same panel.