Skip to content

Commit d9eea13

Browse files
committed
[Silver I] Title: 골드바흐의 추측, Time: 1828 ms, Memory: 311180 KB -BaekjoonHub
1 parent 9608b72 commit d9eea13

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

백준/Silver/6588. 골드바흐의 추측/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
### 성능 요약
66

7-
메모리: 312840 KB, 시간: 1136 ms
7+
메모리: 311180 KB, 시간: 1828 ms
88

99
### 분류
1010

1111
수학, 정수론, 소수 판정, 에라토스테네스의 체
1212

1313
### 제출 일자
1414

15-
2025년 8월 26일 22:46:41
15+
2025년 8월 26일 22:44:30
1616

1717
### 문제 설명
1818

백준/Silver/6588. 골드바흐의 추측/골드바흐의 추측.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ private static boolean is_prime(int i) {
3535
if (i<2){
3636
return false;
3737
}
38-
for (int j = 2; j <= Math.sqrt(i) ; j++) {
38+
for (int j = 3; j *j<=i ; j+=2) {
3939
if(i%j==0){
40-
primeCache.put(i, false);
4140
return false;
4241
}
4342
}

0 commit comments

Comments
 (0)