nonprims iterate over all prims