[Solved] How to split an integer into two integers that when multiplied they give the result of the first number [duplicate]


Every integer is divisible by itself and by 1. If the integer is composite, it will have at least one other pair of divisors (which may be the same, as in the case of 4, which is divisible by 1,4 and 2,2).

lim = int(math.sqrt(num))
for i in range (1, lim):
    if num%i==0:
        print(i, int(num/i))

1

solved How to split an integer into two integers that when multiplied they give the result of the first number [duplicate]