题解 | #完全数计算#
完全数计算
https://www.nowcoder.com/practice/7299c12e6abb437c87ad3e712383ff84
n = int(input())
ls=[]
for a in range(1, n+1):
count=0
for i in range(1, a):
if a % i == 0:
count+=i
if count == a:
ls.append(a)
print(len(ls))