Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  primos
Language: JAVA
Code:
public class HrHqADdi {
    
     public static void main(String[] args) {
     int cont=0;
     int bool=0;
     for(int i=0; i<=8761; i++){
     bool=0;
     for(int j=2; j<i && bool!=1; j++)
     { if(i%j==0)     
        bool=1;
         }
     if(bool==1) cont++;
}
     
        System.out.println(cont);
    }

}          
Comments: