Okay, now I'm not very good at computer programming, so if any of you are good at it, can you tell me if I did this right? There is one spot where I wasn't sure how to write it, and I marked it with a note.

#include <stdio.h>

Void main(void)

{

int i, k, m, n, range;

int primes[10000], naturals[100];

float primerange;

for(k=2; k<=100; k++)

naturals[k] = k;

printf(“Type in range(greater than 1 and less than 10000): ”);

scanf(“%i”, &range);

if (range <= 1)

{

printf(“Error: Please enter a number greater than 1: “);

return;

}

else

{

primerange = (range)^(1/2);

for(i=2; i<=primerange; i=i+1)

{

for(m=2; m<=100; m++)

{

if (int = naturals[m]/i) /* ri**ght here is the spot I can't get. How do I write the if statement so that if the number isn't an integer then, etc.,etc.? */** primes[m] = 0;

else

primes[m] = naturals[m];

}

}

for(n=2; n<=100; n++)

printf(“%i “, primes[n]);

}

printf(“\n”);

}