提交时间:2024-07-18 12:46:21
运行 ID: 49569
n = input() n = int(n) count = 0 for i in range(2,n): sum1 = 0 for j in range(1,i//2+1): if i%j == 0: sum1 += j if sum1 == i: print(i) count += 1 print('*' + str(count))