Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
165 B
1
Indexable
Never
for(int i =1;i<=10;i++){
			int cnt = 0;
			for(int j =1;j<=Math.sqrt(i);i++){
				if(i%j==0){
					cnt++;
				}
				if(cnt>1)System.out.println(i);
			}
		}