Whats the problem in this code?

@garganshul151

  1. you are using the same variable i for the outermost loop and inner loops as well, please use a different variable name.
  2. you have some issues in your for loop

i have fixed your code, its now working https://ide.codingblocks.com/s/182103
please note that you have to display the number of prime numbers, not the prime numbers themselves

@garganshul151 please mark your doubt as resolved if you are satisfied

This is also not working…https://ide.codingblocks.com/s/182129

https://ide.codingblocks.com/s/182131 check this code, i added newline after printing value for each test case