I found something really strange happening in python with that code:
num = 99999999999999999999999999999
for i in range(2, num):
if num % i == 0:
j = int(num / i)
print(num, '=', i, '*', j)
break
else:
print(num, 'is prime')
Python is giving me
99999999999999999999999999999 = 3 * 33333333333333333409747959808
as output, what is obviouly wrong. And as bigger num
is getting, the wronger the output gets.
Can someone tell me, what's going on here?