Whats the problem in this code?
- you are using the same variable i for the outermost loop and inner loops as well, please use a different variable name.
- 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
https://ide.codingblocks.com/s/182131 check this code, i added newline after printing value for each test case