for i in range(2,1000):
s=1
for j in range(2,i):
if i%j==0:
m=i/j
s=s+m
if s==i:
print i,
时间: 2024-10-16 01:19:16
for i in range(2,1000):
s=1
for j in range(2,i):
if i%j==0:
m=i/j
s=s+m
if s==i:
print i,