Program P3.c -- tcov Output

           #include <stdio.h>
           #include <math.h>
           
           int root( int n ) {
  99999 ->     return sqrt(n);
           }
           
           int prime( int n ) {
               int i, bound;
  99999 ->     bound = root(n);
               for( i = 2;  i < bound;  i++ )
2736017 -> 	if (n % i == 0)
  90320 -> 	    return 0;
2645697 ->     return 1;
           }
           
           int main() {
               int i, n;
      1 ->     n = 100000;
               for( i = 2;  i <= n;  i++ )
  99999 -> 	if (prime(i))
   9679 -> 	    printf("%d\n", i);
  99999 ->     return 0;
           }


		 Top 10 Blocks

		 Line	   Count

		   12	 2736017
		   14	 2645697
		    5	   99999
		   10	   99999
		   21	   99999
		   23	   99999
		   13	   90320
		   22	    9679
		   19	       1


	    9	Basic blocks in this file
	    9	Basic blocks executed
	100.00	Percent of the file executed

      5881710	Total basic block executions
     653523.31	Average executions per basic block