+ 7
What is the most effective prime no. program?
2 Respostas
+ 11
You can find some ideas in my code.
It is not the best, but use some technique to reduce the checks.
Try to divide until the square of the number and divide only for prime numbers.
See createPrimeList method in
https://code.sololearn.com/cnBDO3pmRV7U/#java
I hope my code can help you.