I need to find the largest positive integer, that I can get from this program. That means this program should break when it displays the largest positive prime number. How can I do it?
What you are asking seems very trivial. Why not just enter a very large prime into the program and see if it breaks? Why do you need someone to tell you that?