Question: how long do you need to wait to paint treated lumber?
Answer: Let it set. If you just bought the wood, let it weather for at least 60 days to allow the chemicals to evaporate and work their way out of the wood.
Make sure the wood is dry. A standard water test will let you know when the pressure-treated lumber is ready. ... 
Apply an outdoor primer/sealer.