I've been trying to keep an eye on this for a while now but I don't really understand how it's being worked out.
Obviously the number of Pokemon defeated affects how much prestige is lost. But what are the other factors and how much do they each affect it?
I feel like if you use only one you may get a bonus? What about if you're fighting with others? Does the level of the gym matter? What about if you retreat or lose all your Pokemon half way? Does swapping out Pokemon affect it at all?