5 odpowiedzi
+ 2
n = int(input())
print(max(i for i in range(1, n) if not n % i))
+ 1
Turn n into a list of its factors and get the largest factor, that is not equal to n.
0
Can you help me ?
0
Влад Голованов I know how to create program to do that.
- 1
could you write this program for me?