Some constant weight codes from primitive permutation groups