s = list[4, 5, 67, 11]
def myprim(s, i=0, j=len(s)):
while(i < j):
for a in range(2, s(j)):
if((s[i] % a) == 0):
print("number is not prime " + s[i])
j += 1
break
else:
print("not prime")
myprim(s)
答案 0 :(得分:0)
您提到的错误在第一行:
s=list[4,5,67,11]
list
是python中的一个类型。看来你想要这个:
s = [4, 5, 67, 11]