Blogger

Delete comment from: Javarevisited

Rafal Sawicki said...

You don't need to loop from 2 to number to check if it's divisible, you only need to do that from 2 to sqrt(number).

Apr 13, 2012, 1:22:22 PM


Posted to Java Program to print Prime numbers in Java - Example Tutorial and Code

Google apps
Main menu