number = int(input('Введите число: '))
divisors = []
for divisor in range(2, number):
if number % divisor == 0:
divisors.append(divisor)
print('Кол-во нетривиальных делителей: ', len(divisors))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
number = int(input('Введите число: '))
divisors = []
for divisor in range(2, number):
if number % divisor == 0:
divisors.append(divisor)
print('Кол-во нетривиальных делителей: ', len(divisors))