java初学者问题:输出前50个素数
怪我咯
怪我咯 2017-04-18 10:38:27
0
1
829
怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
左手右手慢动作

Replace while(n<500) with while(true). Because it breaks when it finds 100 prime numbers.
In addition, the algorithm for determining prime numbers has room for optimization.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template