IT
[스크랩] 자바소수구하기
네모세모네모
2010. 3. 15. 20:45
public class SosuTest{
public static void main(String[] args){
int i,j;
for(i=2; i<100; i++){
for(j=2; i%j !=0; j++);
if(i==j) System.out.println(j);
}
}
}
출처 : 주식&프로그래밍&DB 자료
글쓴이 : shin 원글보기
메모 :