src2020/1567_numofsamesushu/Readme.md

21 lines
430 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 回文素数的个数
[问题描述]
教学案例,必须使用函数完成求解!
  如果一个数从左边读和从右边读都是同一个数就称为回文数。例如6886就是一个回文数从给出的数据中统计出既是回文数又是素数的数的个数。
[输入格式]
  若干行,每行有若干个整数(待检测所有整数总个数 <= 10^5 0 < 每个整数的值 < 10^9 )。
[输出格式]
  一个整数即回文素数的个数
[输入样例]
7 12 10 11 121 1331 10301
[输出样例]
3