Most primers need around twenty-four hours to cure fully before they can be painted over. There are primers made of latex that may be completely dry in as little as half an hour.
However, most experts advise you to hold off on painting for a whole day to get the best possible results.