THINKING - Strange Pattern (bugged)

no tags 

Really makes you think

#include <stdio.h>

int count(int t){

return edit this part;


int main(i){for(i=1;i<<0b10000;i++)printf("%d %d\n",i,count(i));return 0;}

#include <stdio.h>
int count(int x){
return (x+1)%x+2
int main(){
for( int i=1 ; i-1001 ; i++ ) printf("%d %d\n",i,count(i));
return 0;

you must not use any emoji on the edited part, especially not thinking emoji. Space is probably not ok because judge uses scanf %s


No input.


1 2
2 3
3 3
4 3
... and so on ...
65534 3
65535 3
65536 3 

Click here to see all problems in this series!

Added by:Andy
Time limit:1s
Source limit:250B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Resource:own problem