锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲a级在线观看,在线免费观看av网站,小水嫩精品福利视频导航http://www.aygfsteel.com/yifeng/archive/2008/09/17/229377.html蹇嗛蹇嗛Wed, 17 Sep 2008 03:44:00 GMThttp://www.aygfsteel.com/yifeng/archive/2008/09/17/229377.htmlhttp://www.aygfsteel.com/yifeng/comments/229377.htmlhttp://www.aygfsteel.com/yifeng/archive/2008/09/17/229377.html#Feedback1http://www.aygfsteel.com/yifeng/comments/commentRss/229377.htmlhttp://www.aygfsteel.com/yifeng/services/trackbacks/229377.html闃呰鍏ㄦ枃

蹇嗛 2008-09-17 11:44 鍙戣〃璇勮
]]>
閫掑綊錛嶉樁涔?/title><link>http://www.aygfsteel.com/yifeng/archive/2008/08/31/225826.html</link><dc:creator>蹇嗛</dc:creator><author>蹇嗛</author><pubDate>Sat, 30 Aug 2008 20:00:00 GMT</pubDate><guid>http://www.aygfsteel.com/yifeng/archive/2008/08/31/225826.html</guid><wfw:comment>http://www.aygfsteel.com/yifeng/comments/225826.html</wfw:comment><comments>http://www.aygfsteel.com/yifeng/archive/2008/08/31/225826.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yifeng/comments/commentRss/225826.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yifeng/services/trackbacks/225826.html</trackback:ping><description><![CDATA[<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img id="Codehighlighter1_23_272_Open_Image" onclick="this.style.display='none'; Codehighlighter1_23_272_Open_Text.style.display='none'; Codehighlighter1_23_272_Closed_Image.style.display='inline'; Codehighlighter1_23_272_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_23_272_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_23_272_Closed_Text.style.display='none'; Codehighlighter1_23_272_Open_Image.style.display='inline'; Codehighlighter1_23_272_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> Factorial </span><span id="Codehighlighter1_23_272_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_23_272_Open_Text"><span style="color: #000000">{<br /> <img id="Codehighlighter1_68_159_Open_Image" onclick="this.style.display='none'; Codehighlighter1_68_159_Open_Text.style.display='none'; Codehighlighter1_68_159_Closed_Image.style.display='inline'; Codehighlighter1_68_159_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_68_159_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_68_159_Closed_Text.style.display='none'; Codehighlighter1_68_159_Open_Image.style.display='inline'; Codehighlighter1_68_159_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">static</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> main(String[] args) </span><span id="Codehighlighter1_68_159_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_68_159_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">for</span><span style="color: #000000"> (</span><span style="color: #0000ff">int</span><span style="color: #000000"> i </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000">; i </span><span style="color: #000000"><</span><span style="color: #000000"> </span><span style="color: #000000">10</span><span style="color: #000000">; i</span><span style="color: #000000">++</span><span style="color: #000000">)<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            System.out.print(getNext(i) </span><span style="color: #000000">+</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img id="Codehighlighter1_199_270_Open_Image" onclick="this.style.display='none'; Codehighlighter1_199_270_Open_Text.style.display='none'; Codehighlighter1_199_270_Closed_Image.style.display='inline'; Codehighlighter1_199_270_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_199_270_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_199_270_Closed_Text.style.display='none'; Codehighlighter1_199_270_Open_Image.style.display='inline'; Codehighlighter1_199_270_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">static</span><span style="color: #000000"> </span><span style="color: #0000ff">int</span><span style="color: #000000"> getNext(</span><span style="color: #0000ff">int</span><span style="color: #000000"> n) </span><span id="Codehighlighter1_199_270_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_199_270_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">if</span><span style="color: #000000"> (n </span><span style="color: #000000">==</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000">) </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000">;<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> n </span><span style="color: #000000">*</span><span style="color: #000000"> getNext(n </span><span style="color: #000000">-</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000">);<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span></div> <img src ="http://www.aygfsteel.com/yifeng/aggbug/225826.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yifeng/" target="_blank">蹇嗛</a> 2008-08-31 04:00 <a href="http://www.aygfsteel.com/yifeng/archive/2008/08/31/225826.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>璐ㄦ暟http://www.aygfsteel.com/yifeng/archive/2008/08/31/225825.html蹇嗛蹇嗛Sat, 30 Aug 2008 19:51:00 GMThttp://www.aygfsteel.com/yifeng/archive/2008/08/31/225825.htmlhttp://www.aygfsteel.com/yifeng/comments/225825.htmlhttp://www.aygfsteel.com/yifeng/archive/2008/08/31/225825.html#Feedback0http://www.aygfsteel.com/yifeng/comments/commentRss/225825.htmlhttp://www.aygfsteel.com/yifeng/services/trackbacks/225825.htmlpublic class PrimeNumber {
    
public static void main(String[] args) {
        
int count = 1;
        
int number = 2;
        
boolean isPrime = true;
        System.out.println(
"The First prime numbersare \n");
        
while (count <= 100{
            isPrime 
= true;
            
int tempSqrt = (int) Math.sqrt(number);
            
for (int divisor = 2; divisor <= tempSqrt; divisor++{
                
if (number % divisor == 0{
                    isPrime 
= false;
                    
break;
                }

            }

            
if (isPrime) {
                
if (count % 10 == 0{
                    System.out.println(number);
                }
 else
                    System.out.print(number 
+ "   ");
                count
++;
            }

            number
++;
        }

    }

}


蹇嗛 2008-08-31 03:51 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 孙吴县| 莱芜市| 巴马| 报价| 合山市| 海兴县| 南安市| 荔波县| 宾阳县| 西昌市| 常德市| 大新县| 洛宁县| 龙井市| 大洼县| 泾源县| 安福县| 宣化县| 海晏县| 嘉荫县| 彭阳县| 明光市| 屏东县| 彰武县| 岳阳县| 砚山县| 临潭县| 迁西县| 桐城市| 广昌县| 吉首市| 宜昌市| 隆回县| 叙永县| 陆川县| 颍上县| 长岭县| 崇礼县| 盐源县| 西平县| 木兰县|