これは私の次のプログラムです
try:
class __Euler3__:
n = 600851475143
primeFactors = []
for i in range(2,n):
if (n%i ==0):
primeFactors.append(i)
n = n/i
i = i -1 #reset i
print primeFactors
except OverflowError as e:
print "the error is" , e
しかし、何らかの理由で、Overflowerror メカニズムはこの例外をキャッチできません。私は python 2.7 を使用しています。