A mouldy bathroom ceiling is usually condensation, so paint alone won't fix it. In order:
- Ventilation first. An extractor fan that actually clears the steam, ideally left running for a while after a shower, makes the biggest difference.
- Kill the mould. Use a fungicidal wash and let it dry properly. Painting over live mould means it comes back through.
- Stain block any marks that remain.
- Use a kitchen and bathroom paint, which is made to cope with moisture and usually contains a mould inhibitor.
Decorators: which products have you found actually last on bathroom ceilings? (Product names are fine; links and adverts aren't.)