My code is not working for all the test cases. May I know my mistake.
Deepak and primes II
Your code gives wrong result when m=1. Consider this testcase
1
1 6
your code gives " 1, 2, 3, 5 " but ans should be “2, 3, 5”. Simple write if(m==1){a[0]=0; } after line no. 33. All testcases will get passed.
Thank you for your help!!!