12831: 【设计型】第7章:函数 素数个数和累加和
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:2
Solved:0
Description
写一个判断素数的函数,在主函数中调用素数的判断函数,求出2到1000之间的素数的个数和素数的累加和,将结果输出,请编程。
Output
2个数,共两行。第一行,输出2~1000素数的个数,第二行输出素数的累加和。
Sample Input Copy
no input needed
Sample Output Copy
168
76127