1 2 32 4 512 by carl

<? while($i<100){$i++;$s="1";while(strpos($s,"".$i)!==0){$x=0;for($j=strlen($s);$j>0;){$c=$x+$s[--$j]*2;$x=$c>9?1:0;$s[$j]=$c%10;}if($x)$s=$x.$s;}echo$s."\n";}

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

download

return to the top page