Chat with our AI personalities
the number of hertz = count per second
Naturally, it depends on how fast you count. If you count 10 every second and you don't take any breaks, then you hit 1 trillion during the 328th day of the 3,168th year.
its least count will be one second
int nearPalin(int n){ int temp = n; int count = 0; while(temp>0){ temp /= 10; count++; } if(count%2 == 0){ count = count/2; while(count--) n = n / 10; temp = n; while(n>0){ temp = temp*10 + n%10; n = n/10; } return temp; } else{ count = count/2; while(count--) n = n / 10; temp = n; n = n/10; while(n>0){ temp = temp*10 + n%10; n = n/10; } return temp; } }
That depends on how fast you count. If you can count about 3 numbers every second then it will take about 10 yrs. Of course you really can't count 3 numbers per second for ten years without stopping to sleep and eat so it would take much longer to "really" do it. 32 years if counting properly,sleeping,eating and drinking.