I’ve forgotten nearly all the useful stuff and now only recall trivia like the base ten logarithm of a few small primes. I wonder if those school kids are still passing on this sort of cobbled together knowledge, now decades past.
I always considered this kind of trick stuff somewhat beneath me, as a child, since it did not discover some underlying truth of the universe like a mathematics proof in number theory would. But that was dumb because in the end I managed neither anything interesting in Number Theory nor complete mastery of thE tricks and at least the latter would have been entertaining to document.
As an aside, there was a kid in our group who could rapidly decompose numbers into sums of powers of two (a skill that turned out useless even in the constrained environment), essentially obtaining the binary representation as soon as you wrote the number out (or showed him the written one). He couldn’t explain how, though, because he was mentally not quite there and would frequently lose verbal skills. After the nth time he stood up on the desk and randomly peed while we were there he was out of the place. Besides it wasn’t that useful and it could just be high skill at the straightforward modulo and shift algorithm. Going the other way was also fast for him but useless for us, though more impressive since adding 2^64 (a number I could still tell you off the top of my head) to some other power of two seems less straightforward.
You're not supposed to think for yourself in school, just do what you are told.