A mathematician, a physicist, an engineer, and a programmer were discussing the theorem that all odd numbers are prime.
Mathematician: 3 is prime, 5 is prime, 7 is prime, 9 is not prime. The theorem is false.
Physicist: 3 is prime, 5 is prime, 7 is prime, 9 is not, 11 is…. The theorem is true, within experimental error.
Engineer: 3 is prime, 5 is prime, 7 is prime, 9 is prime, 11 is prime…. The theorem is true.
Programmer: 3 is prime, 3 is prime, 3 is prime….
The title of the joke is infinite loop. An infinite loop is what happens when a line of code is constantly repeated once it is started without a hardware interrupt or loss of power. The 3 is a prime being repeated demonstrates the infinite loop error in the programmer's code. That is the joke. As for the slur against the engineer getting 9 as a prime that is a common mathematician's claim that engineers take shortcuts in math and do not test the theorem properly.
- spam
- offensive
- disagree
- off topic
Like