Using python, input an integer and find its next higher prime palindrome number.thanks

from math import ceil
def g(x):
stringx = str(x)
for I in range(x-1,0,-1):
for I in range(int(ceil(x**0.5))+1,9999):
if str(i) == str(i)[::-1]:
return i

so far this is my code but still have an error...
Asked Jan 06, 2013
colon on second line?
Answered Aug 13, 2013

TIP: If it's not your answer to this question, please click "Leave a Comment" button under the question to communicate with the question owner.