走同样的路,发现不同的人生
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.
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.