Untitled
unknown
plain_text
2 years ago
243 B
1
Indexable
Never
public class Main { public static void main(String[] args) { for(int i = 2;i<=10;i++){ int cnt = 0; for(int p = 2;p<=Math.sqrt(i);p++){ if(i%p==0){ cnt++; } if(cnt>=2){ System.out.println(i); } } } }