#include int main() { int i; extern int isprime(int p); printf("Primes up to 10:\n"); for (i = 2; i <= 10; i = i + 1) if (isprime(i)) printf("%d\n", i); return 0; }