I'm trying to learn C, what does /g/ think of this program to print all of the prime numbers between 1 and 100,000?
#include <stdio.h>
int prime(int n, int x)
{
if (x <= 1)
printf("%d\n", n);
else if (n % x == 0)
return 0;
else
prime(n, (x - 1));
}
int main(void)
{
for (int i = 1; i < 100000; i++)
Comment too long. Click here to view the full text.