Answers by visitors named: mathlegend

By fermat's little theorem, 29^p = 29 mod p so 29^p+1 = 30 mod p, and we're given that 29^p+1=0modp, therefore 30=0modp, and p | 30 This yields 3 answers, namely p=2,3,5.