Take as input a Number N and Print all the prime numbers from 2 to N

I’m getting correct ans even then why online judge is showing all test cases failed?
https://ide.codingblocks.com/s/241676 this is my code.https://hack.codingblocks.com/app/practice/1/226/problem this is problem