[Login|Register]
Problems

Status

Rank

Problem 1053
素数问题
Time Limit: 1000ms
Memory Limit: 65536kb
Description
计算n以内的素数;
Input
多个输入实例,每个实例为一个整数n(n≤1000);
Output
将不大于n的所有素数输出,以逗号加空格隔开,最后一个数后面无逗号空格;
Sample Input
5
10
Sample Output
2, 3, 5
2, 3, 5, 7
University of Science and Technology of China
Online Judge for ACM/ICPC
Processed in 1.2ms with 1 query(s).