#include<stdio.h>
void prime(int a)
{
int i,j,sum=0,count=0;
for(i=2;i<=a;i++)
{
for(j=1;j<=i;j++)
{
if(i%j==0)
{
count++;
}
if(count==2)
{
sum=sum+i;
}
}
}
printf("sum of prime=%d",sum
); }
int main()
{
int x;
void prime(int);
printf("enter the numbers\n");
}
I2luY2x1ZGU8c3RkaW8uaD4Kdm9pZCBwcmltZShpbnQgYSkKewppbnQgaSxqLHN1bT0wLGNvdW50PTA7CmZvcihpPTI7aTw9YTtpKyspCnsKICAgIAogICAgIGZvcihqPTE7ajw9aTtqKyspCiAgICB7CiAgICAgICAgIGlmKGklaj09MCkKICAgICAgICB7CiAgICAgICAgICAgICBjb3VudCsrOwogICAgICAgIH0KICAgICAgICAgICAgIGlmKGNvdW50PT0yKQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgcHJpbnRmKCIlZCIsaSk7CiAgICAgICAgICAgICAgICAgc3VtPXN1bStpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIAogICAgICAgICAKICAgIH0KfQpwcmludGYoInN1bSBvZiBwcmltZT0lZCIsc3VtKTsKfQppbnQgbWFpbigpCnsKICAgIGludCB4OwogICAgdm9pZCBwcmltZShpbnQpOwogICAgCiAgICBwcmludGYoImVudGVyIHRoZSBudW1iZXJzXG4iKTsKICAgIHNjYW5mKCIlZCIsJngpOwogICAgcHJpbnRmKCJzdW0gb2YgcHJpbWU9JWQiKTsKICAgIAogICAgCiAgICAKICAgCn0=