Primes or Palindromes?

Problem Name:
Primes or Palindromes?
Site:CodeForces
Links:
Tags:
Problem setters: