Count

xiaoxiao2021-03-06  104

http://blog.9cbs.net/shifend/archive/2004/08/17/77149.aspx

The number of prime is greater than 1, which can only be 1 and it itself. There are 25 prime numbers within 100:

2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97

#include

void main ()

{

INT n = 100;

INT i = 3;

Int Arr [100];

Arr [0] = 2;

INT count = 1;

While (i

{

For (int J = 0; j

IF (j == count) {arr [count] = i; count ;} i ;} for (int II = 0; II

转载请注明原文地址:https://www.9cbs.com/read-126076.html

New Post(0)