Firstly, I'm a beginner and I don't speak English very well, so any questions about what I'm trying to say are welcome. I was making a python program that received two numbers, and the program showed the prime numbers between them.

The algorithm takes the numbers, turns them into a list, then divides each number in that list by each of its predecessors. Then each integer division is passed to another list to see which of the numbers passed to the other list are primes.

Once passed to the second list, the prime numbers are those that are not repeated in that list, that is, when removing all the repeated values, I have a list of primes, but in some values ​​the function simply does not work. I would like to understand why. Thanks in advance!

Follow the code below:

```py
def Find_Primes(smaller_num, bigger_num):
    array = list(range(smaller_num, (bigger_num + 1)))
    array2 = []

    for i in array:
        for j in range(1, i):
            if i % j == 0:
                array2.append(i)

    for num in array2:
        if array2.count(num) > 1:
            while num in arrayt2:
                arrayt2.remove(num)

    print(array2)

smaller_number = int(input('Text the smaller number of interval: '))
bigger_number = int(input('Text the other number of interval: '))
Find_Primes(smaller_number, bigger_number)

```