<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_51751"> <div class="blockcode"> <div id="code_KYi"><ol> <li><?php<li><li>for($i = 2; $i < 1001; $i ) {<li> $primes = 0;<li> for($k = 1; $k <= $i; $k )<li> if($i%$k === 0) $primes ;<li> if($primes <= 2) // 能除以1和自身的整数(不包括0)<li> echo "<strong>{$i}</strong><br />";</li> <li>}</li> </ol></div> <em onclick="copycode($('code_KYi'));">复制代码</em> </div> </td></tr></table> <div id="comment_51751" class="cm"> </div> <div id="post_rate_div_51751"></div> <br><br>