permutation date by Endres

<?for($a=3;$a<10;$a++){for($b=1;$b<4;$b++){if($b==$a)continue;for($c=1;($b<3&&$c<10)||($c<2);$c++){if($c==$b||$c==$a)continue;for($d=1;$d<3;$d++){if($d==$c||$d==$b||$d==$a)continue;for($e=1;($d<2&&$e<10)||($e<4);$e++){if($e==$d||$e==$c||$e==$b||$e==$a)continue;for($f=1;$f<6;$f++){if($f==$e||$f==$d||$f==$c||$f==$b||$f==$a)continue;for($g=1;$g<10;$g++){if($g==$f||$g==$e||$g==$d||$g==$c||$g==$b||$g==$a)continue;for($h=1;$h<6;$h++){if($h==$g||$h==$f||$h==$e||$h==$d||$h==$c||$h==$b||$h==$a)continue;for($i=1;$i<10;$i++){if($i==$h||$i==$g||$i==$f||$i==$e||$i==$d||$i==$c||$i==$b||$i==$a)continue;echo "0$a$b$c$d$e$f$g$h$i\n";}}}}}}}}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page