Codice PHP:
<?php
$cifre 
10;
for (
$i 0$i 1000$i++) {
    
printf("%0{$cifre}d"$i);
}
?>