Home
Problem Set
Training
Contest
Homework
Discussion
Record
Ranking
Login
Language
English
한국어
简体中文
正體中文
#487. 【设计型】第11章:指针和数组 孪生素数
ID: 487
Type: Default
1000ms
2MiB
Tried: 0
Accepted: 0
Difficulty: (None)
Uploaded By:
admin
Tags>
高级语言程序设计I-第11章:指针和数组
【设计型】第11章:指针和数组 孪生素数
说明
如果n和n+2都是素数,则称它们是孪生素数。输入m,输出两个均不超过m的最大孪生素数。5<=m<10000。例如m=20时答案是17、19,m=1000时答案是881、883。
输入格式
第一行输入m,5<= m < 10000
输出格式
第二行输出两个数,它们之间用逗号隔开。
1000
881,883
Source
高级语言程序设计I-第11章:指针和数组
Login to Submit
Discussions (0)
Solutions (1)
Files
Statistics
CLOSE
SIGN IN
Using your 小彩虹 universal account
Username
Password
Remember me
Forgot password or username?