Explain the magic 65537 constant.

RFC 4871 insists on using 65537 (0x10001) as a public exponent parameter for RSA based algorithms.
The value has been chosen by cryptography engineers after security analysis of short and long public exponents that may lead to security flaws in the algorithm.