All pastes #413151 Raw Edit

Miscellany

public text v1 · immutable
#413151 ·published 2007-03-28 04:24 UTC
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;
}