I recently stumbled upon this screenshot while researching social media on the train. Of course, it was followed by a cascade of spiteful comments, criticizing this fresh programmer’s attempt to solve a classical problem in computer science. The modulus operation.
I was half expecting them to precompute the answers and create a lookup table but I’m glad they stuck to the bit lol
Lol that's what i would do back when i first started programming. I would put results of basic math operations into lookup tables, failing to realise that memory fetches take a shit ton of time