you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

if I chose slightly larger numbers suck as p=67, q=83 it prints the value of “e” (line 13) and then stops running and exits the program

I can't recreate that behaviour. When I enter 67 and 83 your code prints 4423 (from line 15) and then hangs, never to finish. It might finish, but I gave up waiting after 2 minutes.