// the code below must output all primes less than 100. But there seems to be some problem with the code. // the present code only outputs the prime no. 2. // debug by changing only a single line in the code. #include void a(int b, int c, int d) { ((c / b) <= 1) ? a(b,c+1,d) : !(c % b) ? a(b,c+1,0) : ((c % b)==(c / b) && !d) ? (printf("%d\t",(c / b)), a(b,c+1,0)) : ((c % b) > 1 && (c % b) < (c / b)) ? a(b,c+1,d + ((c / b) % (c % b))) : (c < b * b) ? a(b,c+1,d) : 0; // return; } int main() { a(100,0,0); }