French writer Voltaire teamed up with a mathematician to exploit a loophole in the French lottery that set him up financially for life.