+ 7

What is the most effective prime no. program?

24th Sep 2017, 3:22 AM
Amar
Amar - avatar
2 Answers
+ 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.
9th Oct 2017, 6:55 AM
Daniele Gaito
Daniele Gaito - avatar