Created a program to find prime factors of a natural number but i get an error:
multipliers = []
a = 2
value = input("Put a natural number here: ")
value = int(value)
for i in range(1, value):
    if value % i == 0:
        multipliers.append(i)
for x in multipliers:
    while a < x:
        if x % a == 0:
            multipliers.remove(x)
        else:
            a += 1
print(multipliers)
All I want to do here is: Get an input value, find the multipliers of a value and make a list from them, take theese multipliers 1 by 1 and try to divide by [2, 3, 4, 5...], if a is a multiplier of x delete it from the list and get another value from list as x and do the same. 
But when I try to run this i get an error message that says
ValueError: list.remove(x): x not in list
I don't know where am I doing wrong. Can you please help me?
 
    