As val is large.So it is not executing code.What can we do to solve this problem.
val = 78478277380
i = 2
while i < val:
if val % i == 0:
print(i)
i += 1
I want all factors of the val.
As val is large.So it is not executing code.What can we do to solve this problem.
val = 78478277380
i = 2
while i < val:
if val % i == 0:
print(i)
i += 1
I want all factors of the val.
If you print the all the numbers, you will get a better idea of what is happening:
val = 78478277380
i = 2
while i < val:
print(str(i) + "is a not factor")
if val % i == 0:
print(str(i) + "is a factor")
i += 1
The problem is that there aren't too many factors for this number.