Time limit
3000 ms
Memory limit
262144 kB
Source
Codeforces Round #315 (Div. 1)
Tags
brute force implementation math number theory *1600
Editorial
Announcement Tutorial (en)
Descriptions:

Primes or Palindromes?

CodeForces - 568A