Skip to content

[20240416] PRG / lv1 / 소수 찾기 / 강병곤 #364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Curry4182
Copy link
Contributor

🧷 문제 링크

https://school.programmers.co.kr/learn/courses/30/lessons/12921

🧭 풀이 시간

10분

👀 체감 난이도

✏️ 문제 설명

n이 주어질 때 1부터 n까지 소수의 수를 반환 하는 문제

🔍 풀이 방법

에라토스테네스의 체 알고리즘을 활용하여

⏳ 회고

10^6 이상 부터는 에라토스테네스의 체를 사용해야 소수를 찾을 수 있다는 것을 다시 한번 더 알게되었다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant