Deepak and prime boundary case error

I am unable to decide the maximum value of array so that i can cover my max boundary condition.
Please tell what should be my num size for n=5000000;

@piyush.bansal8158625 try with 100000005 it will pass all the test case

1 Like

what is the significance of using 10000005 instead of 10000000
i.e adding a extra 5 space.

The code got submitted successfully with it

@piyush.bansal8158625 hey piyush there is no such significance for this but extra space of 5 is providing a safe zone for the corner case.