# Program stop at i=95

When I run the below code, the computer stopped at i=95:

 for i in range(1,200):
n=round(pi*10^i);
p=factor(n)
print("i=",i,", n=",n,", p=",p)


Not sure why it happens or if that really is very slow case to process...

This case if I used Wolfram Alpha it gives as: factor (round(pi*10^95)) 2^2×739×106278506549045779379656406741525807990431982387520494620261995680237361511712077084845562427 (2 distinct prime factors, 1 distinct composite factor)

edit retag close merge delete

Sort by » oldest newest most voted

ok. so It seems it was very difficult case and now finally solved as:

i= 95 , n= 314159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534212 , p= 2^2 * 739 * 31131749433799663827607439757630227817061 * 3413830204918052760918536918030179296524059816063007

more

Please accept this answer to mark the question as solved. For that, click the "accept" button near the answer (the button with a check mark).

( 2022-04-06 14:32:02 +0200 )edit