All pastes #551289 Raw Edit

Stuff

public cpp v1 · immutable
·published 2007-06-08 18:57 UTC
rendered paste body
#include <stdio.h>//2,3,5,7int main (){    int Primes_list[200000];    int Found_primes=0;        Primes_list[0]=2;        int j=0;    int i=2;        while(i < 10000000)    {           //printf("%i \n", i);        while(j <= Found_primes)        {            if(i % Primes_list[j] != 0) { j++; }            else break;                        if( j > Found_primes)            {                  Found_primes++;                  Primes_list[Found_primes]=i;                 //printf("%i \n", Primes_list[Found_primes]);            }        }        j=0;        i++;    }        /*    j=0;    while(j <= 1000)    {        printf("%i \n", Primes_list[j]);        j++;    }    */    printf(" %i", Found_primes);        scanf(" ");    return 0;}