Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- 영재교육원
- 정보보호 영재원
- 10833
- 2506
- 10995
- 11109
- 2605
- 차세대 보안 리더 양성
- 리뷰
- boj
- 11943
- 5086
- 5586
- 차세대 보안 리더 양성 프로그램
- 2501
- 영재원
- 1547
- EOF
- Python
- 공주대 정보보호
- 2965
- BoB 7기
- acmicpc
- 4101
- 2476
- text
- Best of the Best
- BoB 후기
- 정보보호 영재교육원
- BOB
Archives
- Today
- Total
짱해커가 되어보자
boj 1929 본문
* Solved 기준 실버2 단순 풀이
def gp(m):
l = [True]*(m+1)
for i in range(2,int(m**0.5)+1):
if l[i]:
for j in range(i*2,m+1,i): l[j] = False
return [i for i in range(2,m+1) if l[i]]
m,n = map(int, input().split())
for i in gp(n):
if(i>=m): print(i)
Comments