// Online Java Compiler // Use this editor to write, compile and run your Java code online class Main { public static void main(String[] args) { result(); } public static void result() { for(int i=500; i < 600; i++) { // the 3 digit range starting with 5 if(isPrime(i)) System.out.println(i); } } public static boolean isPrime(int p) { if(p < 2) // no prime number smaller than 2 return false; else if(p == 2) // 2 is a prime no return true; else { for(int i=2; i