Let f(x)=cos(px)+sinx be periodic, then p must be :
Positive real number
Rational
Prime
Negative real number
f(x)=cospx+sinx
Period : L.C.M. of 2πp,2π1
For period to exist p should be a rational number.