Problems Description
<p> <strong>例5.7 </strong> 用筛法求出100以内的全部素数,并按每行五items数显示。 </p> <p> </p>
Input格式
<p> 无输入。 </p> <p> </p>
Output格式
<p> 多行,从小到大输出素数,每行五items素数,素数之间用一items空格points隔,每行最后不能有空格。 </p> <p> </p>
Sample
Sample Input 1
no input needed
Sample Output 1
2 3 5 7 11
13 17 19 23 29
31 37 41 43 47
53 59 61 67 71
73 79 83 89 97
Submit Code
请先Login后Submit
🤖 AI 解题助手
OpenRouter
就绪