Problem 5

Find all triples (a,b,p) of positive integers with p prime that satisfy

ap =b!+p.