#include int is_prime(int i) { int j; for (j = 2; j*j <= i; j++) { if (i % j == 0) return 0; } return 1; } int main(char **args) { int i; for (i = 2; i < 1000000; i++) { if (is_prime(i)) printf("%d\t", i); } printf("\nThat's all prime numbers for today.\n"); return 0; }