{ "type": "code_options", "author": "csdn.net", "source": "solution.md", "exercise_id": "9dc91baa80a849b283cfd7d314ec0882", "keywords": "算法高阶,数论算法,素数的测试,算法问题选编", "title": "n个素数的求和问题。", "desc": [ { "content": "\n
给定n(n≤100)个正整数,所有正整数均≤1000000;求其中所有素数的和。\n例如给定序列: 2 3 4 5 6,素数和为:10\n给定序列: 3 4 5 6 7, 素数和为:15\n给定序列: 12 19 23 35 68 71, 素数和为: 113\n输入格式:\n输入为两行。第一行是一个正整数n,表示有多少个数据。第二行是n个正整数组成的序列。\n输出格式:\n输出一个正整数,是上述序列中所有素数之和。
", "language": "markdown" } ], "answer": [ { "content": "", "language": "cpp" } ], "prepared": [ [ { "content": "", "language": "cpp" } ], [ { "content": "", "language": "cpp" } ], [ { "content": "", "language": "cpp" } ] ], "template": { "content": "#include