Unnamed
public php v1 · immutable<?$stime = microtime(true);$i = 11;$j = 4;$cont = true;$list = array(2,3,5,7);while($i < 500){ if(($i % 2 != 0) && ($i % 3 != 0) && ($i % 5 != 0) && ($i % 7 != 0)){ if(sqrt($i) > 7){ while(($list[$j] <= sqrt($i)) && ($cont)){ if($i % $list[$j] == 0){ $cont = false; } $j++; } } if($cont){ $list[count($list)] = $i; } $j = 4; } $i++; $cont = true;}print_r($list);printf("%01.5f",microtime(true)-$stime);?>