http://www.spoj.com/problems/CNTPRIME/
Hi, i am trying to solve this problem its a simple range count segment tree with lazy updates but no matter how i try it gets wrong answer but it outputs correctly everything i try at it.
Here is my code: https://ideone.com/y8V607
2
2 1
4 4
0 1 2 2
2 1
4 4
1 1 1