rendered paste body#include "stdafx.h"
#define SIZE 1000
void PrintArray( int array[], i );
int main(void)
{
int counter;
int i;
int array[SIZE]= {1};
int subscript;
int remainder;
array[1] = 0;
for( i = 7; i < SIZE; i++)
{
if( array[i] = 1
{
i = subscript;
remainder = subscript % i;
if( remainder = 0)
{
array[i] = 0;
}
}
}
for( i = 5; i < SIZE; i++)
{
if( array[i] = 1
{
i = subscript;
remainder = subscript % i;
if( remainder = 0)
{
array[i] = 0;
}
}
}
for( i = 3; i < SIZE; i++)
{
if( array[i] = 1
{
i = subscript;
remainder = subscript % i;
if( remainder = 0)
{
array[i] = 0;
}
}
}
for( i = 2; i < SIZE; i++ )
{
if( array[i] = 1)
{
i = subscript;
remainder = subscript % i;
if( remainder = 0)
{
array[i] = 0;
}
}
}
return 0;
}