大佬们py求助 显示Compile Error
查看原帖
大佬们py求助 显示Compile Error
918951
OOR_123楼主2023/1/13 18:00
L=int(input())
d=[]
for i in range(2, L):
    for j in range(2, i):
        if i % j == 0:
            break
    else:
        d.append(i)
        a=sum(d[:i])
        if a==L:
            
            for s in d:
                print(s)
            print(len(d))
            break

2023/1/13 18:00
加载中...