回文素数
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
说明
有些素数很特别,例如131,它是素数又是回文数。桐桐想把不大于N的所有既是回文数又是素数的数求出来,你能帮助她吗?输入格式
只有一个整数N(2<=n<=10000000)输出格式
输出满足题设条件的数,每行输出5个数。样例
100
2 3 5 7 11