文件名称:main
介绍说明--下载内容来自于网络,使用问题请自行百度
题目描述
令Pi表示第i个素数。现任给两个正整数M <= N <= 10000,请输出PM到PN的所有素数。
输入描述:
输入在一行中给出M和N,其间以空格分隔。
输出描述:
输出从PM到PN的所有素数,每10个数字占1行,其间以空格分隔,但行末不得有多余空格。
输入例子:
5 27
输出例子:
11 13 17 19 23 29 31 37 41 43
47 53 59 61 67 71 73 79 83 89
97 101 103(Title Descr iption
Let Pi represent a prime number of I. Now give two positive integers M < = N < 10000, please export all the prime numbers from PM to PN.
Input Descr iption:
Input gives M and N in a row, separated by spaces.
Output Descr iption:
Output all prime numbers from PM to PN, each 10 digits occupy 1 rows, separated by spaces, but no redundant spaces at the end of the line.
Input examples:
527
Output examples:
111317192329313741 43
475359616771737983 89
97101103)
令Pi表示第i个素数。现任给两个正整数M <= N <= 10000,请输出PM到PN的所有素数。
输入描述:
输入在一行中给出M和N,其间以空格分隔。
输出描述:
输出从PM到PN的所有素数,每10个数字占1行,其间以空格分隔,但行末不得有多余空格。
输入例子:
5 27
输出例子:
11 13 17 19 23 29 31 37 41 43
47 53 59 61 67 71 73 79 83 89
97 101 103(Title Descr iption
Let Pi represent a prime number of I. Now give two positive integers M < = N < 10000, please export all the prime numbers from PM to PN.
Input Descr iption:
Input gives M and N in a row, separated by spaces.
Output Descr iption:
Output all prime numbers from PM to PN, each 10 digits occupy 1 rows, separated by spaces, but no redundant spaces at the end of the line.
Input examples:
527
Output examples:
111317192329313741 43
475359616771737983 89
97101103)
相关搜索: 数素数
(系统自动生成,下载前可以参看下载内容)
下载文件列表
| 文件名 | 大小 | 更新时间 |
|---|---|---|
| Main_05.java | 1970 | 2018-03-25 |
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
