def prime(num):
if num > 3:
for i in range(3,num):
if num // i == 0:
return False
else:
return True
elif 1 <= num <= 3:
return True
primenumlist = []
def prime_num(number):
global primenumlist
for i in range(2,number):
if prime(i) and number%i == 0:
primenumlist.append(i)
prime_num(number//i)
break
else:
primenumlist.append(number)
return primenumlist
print(prime_num(160))