Is there a way to prevent mildew/mold from forming on vinyl siding?
Rustoleum sells a mold/mildew-proof paint called Perma-White.

They also sell a fungicide (Tiabendazole) additive called ADD-2 you can mix into your preferred paint.

Either of those should at least help some.