The magic number is part of the logic, yes, but that’s not even the best magic number for the job iirc, and nobody remembers how they got it.
I just used this as an example because it’s incredibly clear that it was copied verbatim (again, comments like “what the fuck?” showing up, you can’t tell me it came up with that itself)