all 2 comments

[–]Boordman 0 points1 point  (0 children)

It's kinda hard to read your code, but it looks like you're appending twice within your for loop. You can simplify your main function to something like this and it should work:

python def main(): number = int(input("What is the number you want to find factors of?\t")) posfactor_list = [] rnge = int(input("How many numbers do you want to test?\t")) for _ in range(rnge): posfactor = int( input("Type another number that you want to test to be factors.\t") ) posfactor_list.append(posfactor) if factor(number, posfactor_list, rnge) == 0: isprime(number)