https://ko.wikipedia.org/wiki/%EC%97%90%EB%9D%BC%ED%86%A0%EC%8A%A4%ED%85%8C%EB%84%A4%EC%8A%A4%EC%9D%98_%EC%B2%B4
def solution(n): sum = 0 s = 0 for i in range(2, n + 1): for j in range(2, i): if i % j == 0: s += 1 if s == 0: sum += 1 s = 0 return sum