src2020/1665_chunsu/Readme.md
2020-04-25 10:22:20 +08:00

18 lines
465 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.

# 『入门』(递归专题)纯粹素数
[问题描述]
教学案例,必须使用递归函数完成求解!
  纯粹素数,即一个正整数,它是素数,然后去掉其最高位,剩下的数值还是素数,再去掉余下数值的最高位,其还是素数,重复如此,直至还剩下个位,其还是素数。则满足该条件的原整数即为纯粹素数。
[输入格式]
  一个整数值n10 <= n <= 10^6
[输出格式]
  按从小到大的顺序一行一个输出大于等于10小于等于n之间的所有纯粹素数。
[输入样例]
[输出样例]