while using the prefix in General settings of the store, so in the admin, if you go to settings > general, you can add a prefix for order numbers
a prefix of 00, then once the orders reach 10000 then that goes into the 7 digits, so bypassing this and keeping it to 6 digits becomes tricky, I'm not sure how to achieve it.