Skip to content

Commit

Permalink
#2 : 1978_소수 찾기
Browse files Browse the repository at this point in the history
  • Loading branch information
devCharlotte committed Apr 13, 2023
1 parent 1fe0fcd commit 79b802e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions 이티준희/1978_소수 찾기.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
결과 - 입력2의 자연수 중 소수의 개수 출력
'''

n = int(input("입력 : \n"))
n = int(input())
#feedback ) n = int(input("입력 : \n")) -> input 내부에 추가적인 멘트 작성 x

num = list(map (int, input().split())) # 입력 받는 값 여러 개 -> map 함수 : 자료형, 함수 (.split() 공백으로 구분)

Expand All @@ -25,7 +26,9 @@
if cnt == 1 : # 약수의 개수 1개
result += 1 # 소수 개수 추가

print ("출력 : ", result) # 출력 : 입력 자연수 중 소수의 개수
print (result) # 출력 : 입력 자연수 중 소수의 개수

#feedback ) print ("출력 : ", result) -> 출력시 추가적인 멘트 x



Expand Down

0 comments on commit 79b802e

Please sign in to comment.