n = int(input())
for item in range(1, n+1):
for i in str(item):
try:
if item % int(i) == 0:
continue
else:
break
except ZeroDivisionError as e:
break
else:
print(item, end=' ')
自除数python
最新推荐文章于 2023-06-30 18:12:31 发布