소수
-
[백준/C++] 1929번 소수 구하기개발/알고리즘 2019. 4. 25. 22:12
문제출처 : https://www.acmicpc.net/problem/1929 1929번: 소수 구하기 첫째 줄에 자연수 M과 N이 빈 칸을 사이에 두고 주어진다. (1 ≤ M ≤ N ≤ 1,000,000) www.acmicpc.net 문제 코드 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 32 33 34 #include using namespace std; int n, m; bool arr[10000001] = {0,}; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); arr[0] = 1; arr[1] = 1; cin >> n >> m..