Format output width to a minimum of 4 digits padding with zeros as necessary

seq

seq -f "%04g" 5 3 20

click the source code to copy install seq on any operating system with command-not-found.com