boolean isPrime=true;
for(int i=2; i<=num/2; i++){
if(num%i==0){
isPrime=false;
break;
}
}
'JAVA' 카테고리의 다른 글
[Spring] jdbc.datasource.DataSourceUtils가 import 되지 않는 오류 (0) | 2023.10.25 |
---|---|
[Spring] 스프링 빈과 의존관계 (0) | 2023.10.25 |
[Spring] @AfterEach, @BeforeEach (0) | 2023.10.24 |
[Spring] 스프링 웹 개발 기초 (MVC, @ResponseBody) (0) | 2023.10.24 |
스프링 부트 애너테이션 (0) | 2023.09.17 |