Remember that a natural number is called prime if and only if has only two divisors: 1 and itself. Moreover, a natural number is called palindromic if its value is the same when its digits are reversed. For instance, 146641 is a palindromic number but 164361 is not.
Write a program that prints the -th prime palindromic number.
Input is a sequence of integer numbers between 1 and 750 (both included).
For each integer of the sequence, print in a line with the -th prime palindromic number.
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T10:38:04.310Z
© Jutge.org, 2006–2026.
https://jutge.org