Read this first: Set the interval- the number of seconds between each number being shown- then press space to start the project. You can also change whether stepping is on- try it both ways. This project shows the binary representations of numbers up to 31.
Took binary converter from this project: https://scratch.mit.edu/projects/161670535/