#include "Stdio.h"
main( )
{ int prime( int ) ;
int m,n,i,sum=0,count=0 ;
scanf("%d,%d", &m,&n ) ;
if(m<1 || n>500) printf("Data error!\n");
和芦陆 else
for ( i = m; i <= n ; i ++ ){
if(i<=1) continue;
if ( prime( i ) ==1 ) {count++; sum += i;}
}
哗哗 printf("count=%d,sum=%d ", count, sum ) ;
唤顷 return 0;
}
int prime( int n )
{ int i ;
for ( i = 2; i < n ; i ++ )
if ( n % i == 0 ) return ( 0 ) ;
return ( 1 ) ;
}