Number theory-Deepak and Primes

Run error

Hey Rishab, make the following changes in your code

  1. increase the value of N to 10000001
  2. In condition check of all the loops replace N with N-1
  3. At line no 34, make it < instead of <=

Still showing run time error

Hey Rishab, I have made all changes that I have suggested above on your code only. And It is passing all the testcases.
this is modification of your code only https://ide.codingblocks.com/s/77791

1 Like

hey rishab, if query is resolved. Please mark this doubt reserved and rate me on the basis of your experience.
rating option will appear when to mark this doubt as resolved.