Skip to content

Commit

Permalink
#2 : 1978_소수 찾기
Browse files Browse the repository at this point in the history
  • Loading branch information
ziy00n committed Apr 12, 2023
1 parent ddf1e64 commit 000f587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 이티지윤/1978_소수 찾기.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
# 입력받은 n개의 숫자 ex: [1, 3, 5, 7]

prime_cnt=0 #소수 갯수
isPrime = True #소수 여부

for i in nums:
isPrime = True #소수 여부
if i == 1:
continue
for j in range(2, i): # nums에 있는 숫자 i를 2부터 i-1까지 나눔
Expand Down

0 comments on commit 000f587

Please sign in to comment.