About Magic Numbers FAQ Download

Magic Numbers - Seven.JS

Notable Magic Numbers

As a magic number can show up in a project out of magic, new magic numbers appear every day. There are lots of magic numbers out there. Some say there are more magic numbers than regular numbers. The magic numbers that show up in a program have varying effects on it.

Every project has LUK

There is a secret number that influences every project, regardless of how many magic numbers it contains. This number is what we call LUK. It influences the effect of other numbers, causing some non-magic numbers to have magical effects.

Project LUK         Magic Number        Outcome
37                  89                  The project will not build
797                 257                 The project will only run on your computer and not anyone else's
666                 666                 Classified   
345                 882                 Segmentation fault (core dumped)
256                 257                 100% increased chance of integer overflow
16                  16.00000001         100% increased chance of array index out of bounds exception