On certain prime power congruences