Home > Q&A > body text
ringa_lee2017-04-18 10:40:27
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.