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...
JHo
Asked Jan 06, 2013

If you are looking for a place to share your travel photos and stories, then try BigRoom.

colon on second line?
MycrazyMIL
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.

Categories