문제 링크 - https://school.programmers.co.kr/learn/courses/30/lessons/12977
from itertools import combinations
def solution(nums):
s = list(combinations(nums, 3))
cnt = 0
for i in s:
for j in range(2, int(sum(i)**0.5)+1):
if sum(i)%j == 0:
break
else:
cnt+=1
return cnt