Untitled

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