for i in range(1,10000):
sum=0
for j in range(2,i):
if i%j==0:
sum+=j
else:
continue
else:
if sum+1==i:
print(i,end='\t')
时间消耗比较大,待改进
for i in range(1,10000):
sum=0
for j in range(2,i):
if i%j==0:
sum+=j
else:
continue
else:
if sum+1==i:
print(i,end='\t')
时间消耗比较大,待改进